RE: Application Configuration File for using CRT locally in VC++ 9
- From: Ralf Tobel <rtobel@xxxxxxxxxxxxxxx>
- Date: Tue, 1 Jul 2008 00:33:04 -0700
Hello Feng Chen,
the main application depends on several different dlls. Their manifest
contains also the dependency on the version 9.0.21022.8 of the CRT and the
MFC.
But redirection for them doesn't work.
As I understood I can have only one application configuration file named
<AppName>.exe.config. Not one for every dll, or am I wrong?
Now the main application loads fine, but when it tries to load the dll
eM-Plant.dll the redirection doesn't work. And there is no configuration file
for this dll.
Here is the output from sxstrace:
=================
Begin Activation Context Generation.
Input Parameter:
Flags = 0
ProcessorArchitecture = x86
CultureFallBacks = en-US;en
ManifestPath = C:\Users\Ralf\Desktop\eM-Plant 9.0\eM-Plant.dll
AssemblyDirectory = C:\Users\Ralf\Desktop\eM-Plant 9.0\
Application Config File =
-----------------
INFO: Parsing Manifest File C:\Users\Ralf\Desktop\eM-Plant 9.0\eM-Plant.dll.
INFO: Manifest Definition Identity is
eM-Plant,type="win32",version="9.0.0.0".
INFO: Reference:
Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"
INFO: Reference:
Microsoft.VC90.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"
INFO: Resolving reference
Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
INFO: Resolving reference for ProcessorArchitecture x86.
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.VC90.CRT\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.CRT.DLL.
INFO: Attempt to probe manifest at C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.CRT.DLL.
INFO: Attempt to probe manifest at C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.CRT.MANIFEST.
INFO: Attempt to probe manifest at C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.CRT\Microsoft.VC90.CRT.DLL.
INFO: Attempt to probe manifest at C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.CRT\Microsoft.VC90.CRT.MANIFEST.
INFO: Manifest found at C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.CRT\Microsoft.VC90.CRT.MANIFEST.
INFO: End assembly probing.
INFO: Resolving reference
Microsoft.VC90.CRT.mui,language="*",processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
INFO: Resolving reference for ProcessorArchitecture x86.
INFO: Resolving reference for culture en-US.
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.VC90.CRT.mui\9.0.21022.8_en-US_1fc8b3b9a1e18e3b\Microsoft.VC90.CRT.mui.DLL.
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 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.VC90.CRT.mui\9.0.21022.8_en_1fc8b3b9a1e18e3b\Microsoft.VC90.CRT.mui.DLL.
INFO: Did not find manifest for culture en.
INFO: End assembly probing.
INFO: Resolving reference
Microsoft.VC90.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
INFO: Resolving reference for ProcessorArchitecture x86.
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.VC90.MFC\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.MFC.DLL.
INFO: Attempt to probe manifest at C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.MFC.DLL.
INFO: Attempt to probe manifest at C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.MFC.MANIFEST.
INFO: Attempt to probe manifest at C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.MFC\Microsoft.VC90.MFC.DLL.
INFO: Attempt to probe manifest at C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.MFC\Microsoft.VC90.MFC.MANIFEST.
INFO: Manifest found at C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.MFC\Microsoft.VC90.MFC.MANIFEST.
INFO: End assembly probing.
INFO: Resolving reference
Microsoft.VC90.MFC.mui,language="*",processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
INFO: Resolving reference for ProcessorArchitecture x86.
INFO: Resolving reference for culture en-US.
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.VC90.MFC.mui\9.0.21022.8_en-US_1fc8b3b9a1e18e3b\Microsoft.VC90.MFC.mui.DLL.
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 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.VC90.MFC.mui\9.0.21022.8_en_1fc8b3b9a1e18e3b\Microsoft.VC90.MFC.mui.DLL.
INFO: Did not find manifest for culture en.
INFO: End assembly probing.
INFO: Parsing Manifest File C:\Users\Ralf\Desktop\eM-Plant
9.0\Microsoft.VC90.CRT\Microsoft.VC90.CRT.MANIFEST.
INFO: Manifest Definition Identity is
Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30411.0".
ERROR: Component identity found in manifest does not match the identity of
the component requested. Reference is
Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
Definition is
Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30411.0".
ERROR: Activation Context generation failed.
End Activation Context Generation.
The whole application takes around 40MB, so it's hard to post. I think you
wouldn't need the source since it's just a question of how to configure the
redirection.
BTW, the application works fine if I install the VC++ redistrubtable package
for the MFC Feature Pack.
Regards,
Ralf
.
- Follow-Ups:
- RE: Application Configuration File for using CRT locally in VC++ 9
- From: Feng Chen[MSFT]
- RE: Application Configuration File for using CRT locally in VC++ 9
- References:
- RE: Application Configuration File for using CRT locally in VC++ 9.0
- From: Feng Chen[MSFT]
- RE: Application Configuration File for using CRT locally in VC++ 9.0
- Prev by Date: RE: Application Configuration File for using CRT locally in VC++ 9.0
- Next by Date: Re: Program compiled in Studio 2005 runs slower compared to Visual
- Previous by thread: RE: Application Configuration File for using CRT locally in VC++ 9.0
- Next by thread: RE: Application Configuration File for using CRT locally in VC++ 9
- Index(es):
Relevant Pages
|