miercuri, 13 februarie 2013

Problem: The machine is missing the correct C++ runtime components for your type of system. (x86 or x64). Installing the following update resolved the issue.

Error: The application has failed to start because the side by side configuration is incorrect please see the application event log or use the command line sxstrace.exe tool for more detail

When: Try start an app from debug

Problem:
The machine is missing the correct C++ runtime components for your type of system. (x86 or x64).
Installing the following update resolved the issue. 

Use sxstrace.exe to find the exception.

Description of the problem using sxstrace.exe:


=================
Begin Activation Context Generation.
Input Parameter:
Flags = 0
ProcessorArchitecture = Wow32
CultureFallBacks = en-US;en
ManifestPath = D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\GFW.Native.dll
AssemblyDirectory = D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\
Application Config File = 
-----------------
INFO: Parsing Manifest File D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\GFW.Native.dll.
INFO: Manifest Definition Identity is (null).
INFO: Reference: Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.6195"
INFO: Resolving reference Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.6195".
INFO: Resolving reference for ProcessorArchitecture WOW64.
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_32\Microsoft.VC80.CRT\8.0.50727.6195__1fc8b3b9a1e18e3b\Microsoft.VC80.CRT.DLL.
INFO: Did not find manifest for culture Neutral.
INFO: End assembly probing.
INFO: Resolving reference for ProcessorArchitecture x86.
INFO: Resolving reference for culture Neutral.
INFO: Applying Binding Policy.
INFO: Find publisher policy at C:\Windows\WinSxS\manifests\x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_516d712b0f495a45.manifest
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_32\Microsoft.VC80.CRT\8.0.50727.6195__1fc8b3b9a1e18e3b\Microsoft.VC80.CRT.DLL.
INFO: Attempt to probe manifest at D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\Microsoft.VC80.CRT.DLL.
INFO: Attempt to probe manifest at D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\Microsoft.VC80.CRT.MANIFEST.
INFO: Attempt to probe manifest at D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\Microsoft.VC80.CRT\Microsoft.VC80.CRT.DLL.
INFO: Attempt to probe manifest at D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\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="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.6195".
ERROR: Activation Context generation failed.
End Activation Context Generation.


What solve my problem:



Installing the following update resolved the issue.

Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
http://www.microsoft.com/downloads/en/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en

Microsoft Visual C++ 2008 SP1 Redistributable Package for (x64)
http://www.microsoft.com/downloads/en/details.aspx?familyid=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en

MicrosoftVisual C++ 2010 Redistributable Package (x86)
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84

MicrosoftVisual C++ 2010 Redistributable Package (x64)
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=bd512d9e-43c8-4655-81bf-9350143d5867
Also, you may take in consideration Visual C++ 2005:
http://www.microsoft.com/en-us/download/details.aspx?id=26401


References:

http://answers.microsoft.com/en-us/windows/forum/windows_7-pictures/error-the-application-has-failed-to-start-because/df019c0d-746e-42d0-ad68-465e18e3f3ef

http://blogs.msdn.com/b/cesardelatorre/archive/2011/03/27/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-error-related-to-mmc-exe-programs-and-weird-cause-amp-simple-solution.aspx

http://support.microsoft.com/kb/2538242
http://www.microsoft.com/en-us/download/details.aspx?id=26401