ERROR: Cannot resolve reference Microsoft.VC80.CRT

P

pankajtakawale

I've built simple C program on MSVC8 (2005) with platform setting-x64
and code-generation: /MD.
/MD: is to link CRT dynamically.
From dependency walker i can see hello.exe depending upon MSVC80.dll
depending upon MSVCRT.dll.....

Im trying to run this program from WInPE 2.0.
It gives me error:
"The application has failed to start because its side-by-side
configuration is incorrect, Please see the application event log for
detail."

When i build program with /MT (statically link with runtime), it runs
fine.
On WInPE using depends-walker, i can see MSVCR80.dll is missing.
I copied only MSVCR80.dll to WinPE, depends-walker now shows valid
dependency; but still program showes same error.

After googling I found that I need to install vcredist_x64.exe on
target computer.
but vcredist_x64.exe cant run on WinPE, error is "specified program
can not be run"

Following is trace from sxstrace utility.....

Please advice.....



=================
Begin Activation Context Generation.
Input Parameter:
Flags = 0
ProcessorArchitecture = AMD64
CultureFallBacks = en-US;en
ManifestPath = X:\Windows\System32\Sample\hello.exe
AssemblyDirectory = X:\Windows\System32\Sample\
Application Config File =
-----------------
INFO: Parsing Manifest File X:\Windows\System32\Sample\hello.exe.
INFO: Manifest Definition Identity is (null).
INFO: Reference:
Microsoft.VC80.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"
INFO: Resolving reference
Microsoft.VC80.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762".
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 X:\Windows\assembly
\GAC_64\Microsoft.VC80.CRT\8.0.50727.762__1fc8b3b9a1e18e3b
\Microsoft.VC80.CRT.DLL.
INFO: Attempt to probe manifest at X:\Windows\System32\Sample
\Microsoft.VC80.CRT.DLL.
INFO: Attempt to probe manifest at X:\Windows\System32\Sample
\Microsoft.VC80.CRT.MANIFEST.
INFO: Attempt to probe manifest at X:\Windows\System32\Sample
\Microsoft.VC80.CRT\Microsoft.VC80.CRT.DLL.
INFO: Attempt to probe manifest at X:\Windows\System32\Sample
\Microsoft.VC80.CRT\Microsoft.VC80.CRT.MANIFEST.
INFO: Did not find manifest for culture Neutral.
INFO: End assembly probing.
ERROR: Cannot resolve reference
Microsoft.VC80.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762".
ERROR: Activation Context generation failed.
End Activation Context Generation.

The application has failed to start because its side-by-side
configuration is incorrect
http://msdn2.microsoft.com/en-us/library/ms235291(VS.80).aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top