side by side - Visual Studio 2012 Debug .exe Needs Microsoft.VC90.DebugCRT -
when build debug configuration, .exe fails launch.
it reports
the application has failed start because side-by-side configuration incorrect. please see application event log or use command-line sxstrace.exe tool more detail.
i used sxstrace.exe tool. reports following error:
error: cannot resolve reference microsoft.vc90.debugcrt,processorarchitecture="amd64",publickeytoken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
i've read lot of posts related these side-by-side errors. tried installing visual studio 2008 redistributable packages hoping missing debug .dll installed in c:\windows\winsxs. however, saw
debug versions of applications , various visual c++ dlls not redistributable.
at https://msdn.microsoft.com/en-us/library/8kche8ah%28v=vs.110%29.aspx.
how can resolve issue?
your manifest file debug build incorrect. here mine looks vs2013. notice "require debug crt" option. load this, in rc file have:
#ifdef _debug 1 24 "profiler.exe.debug.manifest" #else 1 24 "profiler.exe.manifest" #endif
here myprogram.exe.debug.manifest
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> <!-- declare identity --> <assemblyidentity type="win32" name="your_company_name" version="1.0.0.0" processorarchitecture="*" /> <!-- require common controls version 6 --> <dependency> <dependentassembly> <assemblyidentity type="win32" name="microsoft.windows.common-controls" version="6.0.0.0" publickeytoken="6595b64144ccf1df" language="*" processorarchitecture="*"/> </dependentassembly> </dependency> <!-- require debug crt --> <dependency> <dependentassembly> <assemblyidentity type="win32" name="microsoft.vc90.debugcrt" version="9.0.21022.8" processorarchitecture="*" publickeytoken="1fc8b3b9a1e18e3b"></assemblyidentity> </dependentassembly> </dependency> <!-- declare support vista , windows 7 --> <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> <application> <supportedos id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> <supportedos id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> </application> </compatibility> <!-- declare privileges --> <trustinfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedprivileges> <requestedexecutionlevel level="asinvoker" uiaccess="false"/> </requestedprivileges> </security> </trustinfo> <!-- declare high dpi support --> <asmv3:application> <asmv3:windowssettings xmlns="http://schemas.microsoft.com/smi/2005/windowssettings"> <dpiaware>true</dpiaware> </asmv3:windowssettings> </asmv3:application> </assembly>