none
Side-by-side problem when trying to run new x64 executable from Project RRS feed

  • Question

  • I have a main VS2008 C++ project that has several dll dependencies from other VS2008 projects.  Normally it is all done as Win32.  I want to move to x64.

    The other dependencies have been compiled for x64, and the project references in the main project have all been switched to the x64 dll's.

    The main program compiles ok as x64.

    When I try to run the executable I get this error (copied from the system event log):

    "Activation context generation failed for "c:\Users\*\Documents\Visual Studio 2008\Projects 2008\myapp\x64\Debug\myapp.exe". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis."

    What am I doing wrong?

    Thursday, February 4, 2016 4:23 PM

Answers

  • Hi FataL1dea,

    Have you add these dlls to your bin folder of your project?

    redist\Debug_NonRedist\amd64\Microsoft.VC90.DebugCRT:
    1.Microsoft.VC90.DebugCRT.manifest
    2.msvcm90d.dll
    3.msvcp90d.dll
    4.msvcr90d.dll

    Microsoft.VC90.DebugOpenMP:
    1.vcomp90d.dll

    For more information, Link below is for your reference.
    http://stackoverflow.com/questions/8982996/side-by-side-configuration-error-for-64-bit-debug-build-in-vs2008

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, February 12, 2016 6:25 AM
    Moderator

All replies

  • Here is the result from sxstrace.exe:

    =================
    Begin Activation Context Generation.
    Input Parameter:
    Flags = 0
    ProcessorArchitecture = AMD64
    CultureFallBacks = en-US;en
    ManifestPath = C:\Users\*\Documents\Visual Studio 2008\Projects 2008\myapp\x64\Debug\myapp.exe
    AssemblyDirectory = C:\Users\*\Documents\Visual Studio 2008\Projects 2008\myapp\x64\Debug\
    Application Config File = 
    -----------------
    INFO: Parsing Manifest File C:\Users\*\Documents\Visual Studio 2008\Projects 2008\myapp\x64\Debug\myapp.exe.
    INFO: Manifest Definition Identity is (null).
    INFO: Reference: Microsoft.VC90.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"
    INFO: Reference: Microsoft.VC90.DebugOpenMP,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"
    INFO: Resolving reference Microsoft.VC90.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
    INFO: Resolving reference for ProcessorArchitecture amd64.
    INFO: Resolving reference for culture Neutral.
    INFO: Applying Binding Policy.
    INFO: No publisher policy found.
    INFO: No binding policy redirect found.
    INFO: Begin assembly probing.
    INFO: Did not find the assembly in WinSxS.
    INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_64\Microsoft.VC90.DebugCRT\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.DebugCRT.DLL.
    INFO: Attempt to probe manifest at C:\Users\*\Documents\Visual Studio 2008\Projects 2008\myapp\x64\Debug\Microsoft.VC90.DebugCRT.DLL.
    INFO: Attempt to probe manifest at C:\Users\*\Documents\Visual Studio 2008\Projects 2008\myapp\x64\Debug\Microsoft.VC90.DebugCRT.MANIFEST.
    INFO: Attempt to probe manifest at C:\Users\*\Documents\Visual Studio 2008\Projects 2008\myapp\x64\Debug\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.DLL.
    INFO: Attempt to probe manifest at C:\Users\*\Documents\Visual Studio 2008\Projects 2008\myapp\x64\Debug\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.MANIFEST.
    INFO: Did not find manifest for culture Neutral.
    INFO: End assembly probing.
    ERROR: Cannot resolve reference Microsoft.VC90.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
    ERROR: Activation Context generation failed.
    End Activation Context Generation.

    Thursday, February 4, 2016 4:37 PM
  • Hi FataL1dea,

    Have you add these dlls to your bin folder of your project?

    redist\Debug_NonRedist\amd64\Microsoft.VC90.DebugCRT:
    1.Microsoft.VC90.DebugCRT.manifest
    2.msvcm90d.dll
    3.msvcp90d.dll
    4.msvcr90d.dll

    Microsoft.VC90.DebugOpenMP:
    1.vcomp90d.dll

    For more information, Link below is for your reference.
    http://stackoverflow.com/questions/8982996/side-by-side-configuration-error-for-64-bit-debug-build-in-vs2008

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, February 12, 2016 6:25 AM
    Moderator