Take a look in the Application Event Log. There may be an entry that gives information about the underlying problem.
How to investigate Activation Context generation failed error
Bogdan Vasilescu
41
Reputation points
Hello,
I am trying to configure an application to consume COM using private assemblies. It worked ok until I added the second dependency. Now I get error: "The application has failed to start because its side-by-side configuration is incorrect" when I try to execute it and sxstrace shows only one cryptic error: "Activation Context generation failed".
The app manifest is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity type="win32" name="App" version="1.0.0.0"></assemblyIdentity>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="COMDLL1" version="1.0.0.0"></assemblyIdentity>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="COMDLL2" version="1.0.0.0"></assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly>
The sxstrace output is:
=================
Begin Activation Context Generation.
Input Parameter:
Flags = 0
ProcessorArchitecture = Wow32
CultureFallBacks = en-US;en
ManifestPath = C:\AppPath\App.exe.Manifest
AssemblyDirectory = C:\AppPath\
Application Config File =
-----------------
INFO: Parsing Manifest File C:\AppPath\App.exe.Manifest.
INFO: Manifest Definition Identity is App,type="win32",version="1.0.0.0".
INFO: Reference: COMDLL1,type="win32",version="1.0.0.0"
INFO: Reference: COMDLL2,type="win32",version="1.0.0.0"
INFO: Resolving reference COMDLL1,type="win32",version="1.0.0.0".
INFO: Resolving reference for ProcessorArchitecture COMDLL1,type="win32",version="1.0.0.0".
INFO: Resolving reference for culture Neutral.
INFO: Applying Binding Policy.
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:\AppPath\COMDLL1.DLL.
INFO: Manifest found at C:\AppPath\COMDLL1.DLL.
INFO: End assembly probing.
INFO: Resolving reference COMDLL1.mui,language="*",type="win32",version="1.0.0.0".
INFO: Resolving reference for ProcessorArchitecture COMDLL1.mui,language="*",type="win32",version="1.0.0.0".
INFO: Resolving reference for culture en-US.
INFO: Applying Binding Policy.
INFO: No binding policy redirect found.
INFO: Begin assembly probing.
INFO: Did not find the assembly in WinSxS.
INFO: Did not find manifest for culture en-US.
INFO: End assembly probing.
INFO: Resolving reference for culture en.
INFO: Applying Binding Policy.
INFO: No binding policy redirect found.
INFO: Begin assembly probing.
INFO: Did not find the assembly in WinSxS.
INFO: Did not find manifest for culture en.
INFO: End assembly probing.
INFO: Resolving reference COMDLL2,type="win32",version="1.0.0.0".
INFO: Resolving reference for ProcessorArchitecture COMDLL2,type="win32",version="1.0.0.0".
INFO: Resolving reference for culture Neutral.
INFO: Applying Binding Policy.
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:\AppPath\COMDLL2.DLL.
INFO: Manifest found at C:\AppPath\COMDLL2.DLL.
INFO: End assembly probing.
INFO: Resolving reference COMDLL2.mui,language="*",type="win32",version="1.0.0.0".
INFO: Resolving reference for ProcessorArchitecture COMDLL2.mui,language="*",type="win32",version="1.0.0.0".
INFO: Resolving reference for culture en-US.
INFO: Applying Binding Policy.
INFO: No binding policy redirect found.
INFO: Begin assembly probing.
INFO: Did not find the assembly in WinSxS.
INFO: Did not find manifest for culture en-US.
INFO: End assembly probing.
INFO: Resolving reference for culture en.
INFO: Applying Binding Policy.
INFO: No binding policy redirect found.
INFO: Begin assembly probing.
INFO: Did not find the assembly in WinSxS.
INFO: Did not find manifest for culture en.
INFO: End assembly probing.
INFO: Parsing Manifest File C:\AppPath\COMDLL1.DLL.
INFO: Manifest Definition Identity is COMDLL1,type="win32",version="1.0.0.0".
INFO: Parsing Manifest File C:\AppPath\COMDLL2.DLL.
INFO: Manifest Definition Identity is COMDLL2,type="win32",version="1.0.0.0".
INFO: Reference: Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21004.1"
ERROR: Activation Context generation failed.
End Activation Context Generation.
Thank you,
Bogdan
Windows development | Windows API - Win32
2,792 questions