Mixed Mode and CRT Dependency Library - HELP

Well, having gone through a ton of research and trying almost every CPP Redist managed, I can find and also try to copy my DLLs locally to the application’s executable directory. I can’t understand which dependencies I don’t see for this mixed.

Basically, I have a great C # application, and I'm trying to use the mixed-mode library that I created. It works fine on the development machine (of course), but is deployed when the library needs to be loaded to use its exceptions due to the lack of CRT dependencies (I suppose).

I used the dependency dependency checker to check all the links to the DLL and make sure that they exist on the deployment machine without any luck, I’m wondering maybe some dependencies that I need to register that I’m missing, but I can’t figure out what.

I get the following exception when the code tries to instantiate a class from a mixed mode library.

Exception Details: Bug System.IO.FileLoadException: Failed to load file or assembly 'USADSI.MAPI, Version = 1.0.3174.25238, Culture = Neutral, PublicKeyToken = null' or one of its dependencies. This application failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

I am compiling a library using VS2008 SP1 with / clr: oldSyntax specified.

:

<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level='asInvoker' uiAccess='false' />
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type='win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
    </dependentAssembly>
  </dependency>
</assembly>

, , , .

- , !

+1
5

CRT ? : 32- , Build x86.

: , Sxstrace.exe, Vista.

+3

, , pragma comment , . XML natoriously snafu.

, , C , , "";

#pragma comment(linker, \
    "\"/manifestdependency:type='Win32' "\
    "name='Microsoft.Windows.Common-Controls' "\
    "version='6.0.0.0' "\
    "processorArchitecture='*' "\
    "publicKeyToken='6595b64144ccf1df' "\
    "language='*'\"")
+2

, VS 2005 - DLL MSVCRT80. , VS 2008 ?

ETA: , , , CRT Runtime ( ), .NET Runtime , (, 3.5)? , , ( ), .

+1

, , , , .

:

Microsoft.VC90.CRT Microsoft.VC90.MFC

: Program Files\Microsoft Visual Studio 9.0\VC\redist\x86

, , .

EDIT: , , , MFC

+1

- , : http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

, , , . , dll .

, - Microsoftsoft , .

+1

All Articles