side-by-side

Problem using ‘useLegacyV2RuntimeActivationPolicy’ & supportedRuntime in an application

浪子不回头ぞ 提交于 2019-12-10 21:52:18
问题 I've modified a couple of different applications' .config file like this: <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0"/> </startup> When I did this for devenv.exe.config (VS 2005 - don't ask :) ), things work great - most of the Visual Studio used .NET 2.0 but I was able to make use of an assembly targeting .NET 4.0 framework. I tried to do the same thing for a custom .exe, which happens to be based on MS CAB (slightly modified) and has a hybrid mix of

Is it possible to load an assembly targeting a different .NET runtime version in a new app domain?

六月ゝ 毕业季﹏ 提交于 2019-12-10 19:34:27
问题 I've an application that is based on .NET 2 runtime. I want to add a little bit of support for .NET 4 but don't want to (in the short term), convert the whole application (which is very large) to target .NET 4. I tried the 'obvious' approach of creating an application .config file, having this: <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" /> </startup> but I ran into some problems that I noted here. I got the idea of creating a separate app domain. To

Using Activation Context API with many dlls in different locations

穿精又带淫゛_ 提交于 2019-12-10 17:26:50
问题 I am using Activation Context API in a .Net client running in a location A to load a COM component reg-free in location B (which is completely different location to A, not a sibling/descendent etc. on the same machine) on WS2008 by passing in location B in the ACTCTX and it works fine. However, I now need to do the same thing with another COM dll which in turn has dependencies on a couple of .Net COM assemblies which live in completely different locations. I have added the dependent .Net

Can I modify the side-by-side assembly search sequence?

佐手、 提交于 2019-12-07 21:09:43
问题 I have a Windows, C++ software project (built with Visual Studio 2005, SP1) that has the following (simplified) file layout: {App. Root Directory} |-- bin | |-- Microsoft.VC80.CRT | +-- Microsoft.VC80.MFC +-- utils There are various executables that live in both the bin and utils directories. Each of these executables rely on the side-by-side assembly (C++ run-time DLLs) that we store in bin , but we have segregated them into these separate folders for various reasons (e.g., the exes in the

Why does windows side by side (winSxS) install policy for auto upgrade when there are known issues between versions?

北慕城南 提交于 2019-12-07 13:16:31
We have an app compiled using MSVC 2K5, SP1 (version 762 msvcrt80) All is well, right up until somebody installs on the same machine .Net3.0SP1, and along with it msvcrt80 version 1433 is installed and a policy to automatically upgrade. Now we have random crashes all over the place and unhappy customers. I understand we can adjust our manifest files to force the usage of a specific version, but I've only found the really ugly way of copying detail that is auto generated and modifying it by hand. This is especially unpleasant with a large number of apps to fix Can we instead get rid of the

SidBySide: 3rd Party Dll refers to two versions of MSVCR80.DLL

江枫思渺然 提交于 2019-12-06 11:09:15
问题 We include a 3rd Party lib+DLL that recently causes a lot of trouble on installations. Using dependencywalker, we found that the dll itself refers to two different Versions of MSVCR80.DLL: Version 8.0.50727.4053 and Version 8.0.50727.42 alt text http://img101.imageshack.us/img101/1734/dependencywalk2.jpg In MOST cases installation makes no problems, even if we distribute none of both versions. But in a number of cases our installation just does not start. We then find messages in the windows

Can I modify the side-by-side assembly search sequence?

╄→尐↘猪︶ㄣ 提交于 2019-12-06 09:54:09
I have a Windows, C++ software project (built with Visual Studio 2005, SP1) that has the following (simplified) file layout: {App. Root Directory} |-- bin | |-- Microsoft.VC80.CRT | +-- Microsoft.VC80.MFC +-- utils There are various executables that live in both the bin and utils directories. Each of these executables rely on the side-by-side assembly (C++ run-time DLLs) that we store in bin , but we have segregated them into these separate folders for various reasons (e.g., the exes in the utils folder are supplemental tools to our primary application, and are run infrequently). As a direct

SidBySide: 3rd Party Dll refers to two versions of MSVCR80.DLL

半世苍凉 提交于 2019-12-04 16:29:32
We include a 3rd Party lib+DLL that recently causes a lot of trouble on installations. Using dependencywalker , we found that the dll itself refers to two different Versions of MSVCR80.DLL: Version 8.0.50727.4053 and Version 8.0.50727.42 alt text http://img101.imageshack.us/img101/1734/dependencywalk2.jpg In MOST cases installation makes no problems, even if we distribute none of both versions. But in a number of cases our installation just does not start. We then find messages in the windows system event log from the SideBySide manger: "Version of DLL does not match". In most cases again this

Simulating SideBySide for Out of Process ActiveX

怎甘沉沦 提交于 2019-12-04 13:09:00
We are adapting our client side relatively complicated application (ActiveX / .net / Delphi / C++ / COM ) to use SxS to achieve non admin deployment and isolation from older versions of our product. We were able to achieve this goal for almost all our in proc components such as our .net ui, Delphi ui, and the COM servers we use in proc by composing a manifest file which described all the libraries used by our process, with no registration on the client of any of the components (almost). And here comes the almost part: At the moment, our application invokes (from it's c++ portion) an out of

Where do I need to switch the Activation Context?

无人久伴 提交于 2019-12-04 12:35:24
The problem I'm facing is essentially described here , that is: I have a DLL that is using a 3rd party in-process COM component dll. I want to use registration free COM with that in-process component. I want to embed and use a manfest into this DLL (not into the main EXE) so that I can use the 3rd party component in a reg free way. The Interface I use from the component is activated through a call to CoCreateInstance . The 3rd party COM component hasn't got any further (COM) dependencies and doesn't rely on or need isolation. I see that simply embedding a manifest into my DLL doesn't work, as