sxs

Building and deploying dll on windows: SxS, manifests and all that jazz

Hi, Since VS 2005, I see that it is not possible to simply build a dll against MS runtime and deploy them together (http://www.ddj.com/windows/184406482). I am deeply confused by manifest, SxS and co: MSDN documentation is really poor, with circular references; specially since I am more a Unix guy, I find all those uninformative. My cor...

Adding Boost makes Debug build depend on "non-D" MSVC runtime DLLs

I have an annoying problem which I might be able to somehow circumvent, but on the other hand would much rather be on top of it and understand what exactly is going on, since it looks like this stuff is really here to stay. Here's the story: I have a simple OpenGL app which works fine: never a major problem in compiling, linking, or run...

SxS installations and WiX

I'm trying to figure out how to deal with installation and deployment of our project which is a framework. Typically developers would install the framework and then have their .Net applications reference our dlls. The framework has 2 levels: A number of native C++ dlls Some C++\CLI and C# assemblies (all are dlls) that reference the ...

where is Pktextract.exe installed?

I have Visual Studio 2008 and the Windows SDK for Windows Server 2008 and .NET Framework 3.5 installed. I believe that is the latest platform SDK. I'm trying to build a signed dll to be installed in SxS. All the tutorials explain to use a tool called pktextract.exe which is part of the SDK, but I can't seem to find the tool. All the oth...

How to write policy redirect files for native SxS dlls?

Where can I find a good reference that explains how to write and install a SxS policy redirecting from one native assembly version to another? I've already succeeded in building and installing two versions of my native assembly using a wix installer. But I'm not sure how to proceed from here. Most of the information I've found is about ...

How to require x86 up the .NET dependency chain when building

We have several projects that use p4.net, a managed DLL, which in turn is dependent on p4dn.dll, a 32-bit unmanaged DLL. This has problems on x64 systems, so I have had to go to each project that uses p4.net and set its processor type to x86. If I understand the problem right, it's that when .NET loads an exe, it checks for a manifest a...

Is anyone successfully using registration-free COM with .NET components?

Until recently, we were happily using registration-free COM for our native and .NET COM components. However, we ran into a weird issue where our application started crashing randomly on windows XP SP3 (but not on vista) after we only changed the version number of a .NET assembly to move from release candidate to release. (Don't you just ...

Per Application config file bindingRedirect doesn't apply to Dlls.

I created a simple Win32 application to demonstrate UXtheme on XP by including a manifest dependency on the ver 6 commctl32.dll I then created a simple Win32 dll, built it with ISOLATION_AWARE_ENABLED, and tested it with an embedded manifest specifying both version 5 and 6 of Comctl32.dll I successfully got the exe and dll to use differ...

Registration-Free COM Interop and Dependent Assemblies

Hi folks - We are working on an integration of a large MFC-based application with a handful of managed (.NET) add-ins. Communication with these add-ins is done via COM. Historically, we've just used the registry to make these add-ins available (as COM servers) to the application. But, now we're trying to use registration-free COM inter...

Side by Side error running Qt Creator

On Vista Ultimate (No SP), I installed Qt Creator 1.3 from Nokia, using the Windows Binary installer. When I tried running it, I got a side-by-side error saying: "The Application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail." The Event Viewer Logs showed: "...

Simulating SideBySide for Out of Process ActiveX

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 ...

Create SxS manifest from managed COM assemblies

Hi, I have a C# dll that implements COM. Is there a way to configure the project to create the SxS manifest for this dll (exposing COM information) and embed it into resources. As I understand, running the mt tool as post-build step could be an option. But there are 2 problems: 1. manifest created with mt does not expose the Prog_ID 2. ...

Registering and using out-of-proc COM server in an isolated way (SxS)

Hi, We have the following configuration: IE->Creates new process->Process uses out-of-proc COM server We would like to enjoy side-by-side for our new process and out-of-proc COM server which are deployed in an isolated folder. We thought using COM registration with relative path but it looks that when trying to load the COM server, svc...

XP Deploying issues due to msvcr90.dll trying to load FlsAlloc

I have an application build with VS2008 SP1a (9.0.30729.4148) on Windows 7 x64 that does not want to start under XP. The message is The application failed to initialize properly (0x80000003). Click on OK to terminate the application.. I checked with depends.exe and found that msvcr90.dll does try to load FlsAlloc from KERNEL32.dll - and...

Is possible to make mt.exe embed manifest files correctly in Visual Studio 2008?

I found that mt.exe fails to correctly create and embed manifest files into executables when run inside a VCPROJ. For example the same executable load well on Windows 7 but failed to load on Windows XP. The manifest was embedded and correct. The place where it fails is inside crtlib.c: if (!(*pfnFindActCtxSectionStringW)(0, NULL, ACT...

ASP.Net 2.0 Web application cannot find specified module.

Recently my ASP.NET application quit working. It is local to my machine. It quit working after installing and uninstalling some third party developer tools. (I believe) I emptied out my directory and started adding modules until I narrowed it down to a managed C++ dll. When I load the dll into Dependency Walker it says that "c:\windows...

Does .net calling COM which in turn calls other .net COM object works when using SxS and manifest files are used

I have a .net application calling to a COM component (C++) which in turn calls to another COM object implemented in .NET. This application is using Windows SxS capabilities and does not register any of it's COM components. Not the one written in C++, and not the one written in .net. This first call to the C++ COM component works fine. ...