应用程序无法启动,因为其并行配置不正确 [英] The application has failed to start because its side-by-side configuration is incorrect

查看:1189
本文介绍了应用程序无法启动,因为其并行配置不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

未处理的异常:System.IO.FileLoadException:无法通过 TheLibrary ,Version = 1.2.3905.36284,Culture = neutral,PublicKeyToken = 14
04827c3a8f2601加载文件或汇编$ b $ 或其依赖之一。 应用程序无法启动
,因为它的并行配置不正确。
请参阅应用程序
事件日志以获取更多详细信息。 (HRESULT的异常:0x800736B1)
文件名:' TheLibrary ,Version = 1.2.3905.36284,Culture = neutral,PublicKe
yToken = 1404827c3a8f2601'---> System.Runtime .InteropServices.COMException(0x800
736B1):应用程序无法启动,因为它的并行配置
on不正确。有关详细信息,请参阅应用程序事件日志。 (来自HRESULT的Exceptio
n:0x800736B1)

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl y 'TheLibrary, Version=1.2.3905.36284, Culture=neutral, PublicKeyToken=14 04827c3a8f2601' or one of its dependencies. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail. (Exception from HRESULT: 0x800736B1) File name: 'TheLibrary, Version=1.2.3905.36284, Culture=neutral, PublicKe yToken=1404827c3a8f2601' ---> System.Runtime.InteropServices.COMException (0x800 736B1): The application has failed to start because its side-by-side configurati on is incorrect. Please see the application event log for more detail. (Exceptio n from HRESULT: 0x800736B1)

当我查看事件日志时,我收到此错误。

when i look at the event log, i get this error.

C:\project\Debug\MyLibrary.dll的激活上下文生成失败。相关程序集Microsoft.VC90.DebugCRT,processorArchitecture =x86,publicKeyToken =1fc8b3b9a1e18e3b,type =win32,version =9.0.21022.8找不到。请使用sxstrace.exe进行详细诊断。

Activation context generation failed for "C:\project\Debug\MyLibrary.dll". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.

我用sxstrace记录错误,结果如下:

I used sxstrace to log the error and here is the result:

=================
开始激活上下文生成。
输入参数:
Flags = 0
ProcessorArchitecture = x86
CultureFallBacks = en-US; zh
ManifestPath = C:\Windows\system32\cmd。 exe
AssemblyDirectory = C:\Windows\system32\

================= Begin Activation Context Generation. Input Parameter: Flags = 0 ProcessorArchitecture = x86 CultureFallBacks = en-US;en ManifestPath = C:\Windows\system32\cmd.exe AssemblyDirectory = C:\Windows\system32\

信息:解析清单文件C:\Windows\system32\cmd.exe。
信息:清单定义标识是Microsoft.Windows.FileSystem.CMD,processorArchitecture =x86,type =win32,version =5.1.0.0。
信息:激活上下文生成成功。
终止激活上下文生成。

INFO: Parsing Manifest File C:\Windows\system32\cmd.exe. INFO: Manifest Definition Identity is Microsoft.Windows.FileSystem.CMD,processorArchitecture="x86",type="win32",version="5.1.0.0". INFO: Activation Context generation succeeded. End Activation Context Generation.

=================
开始激活上下文生成。
输入参数:
Flags = 0
ProcessorArchitecture = x86
CultureFallBacks = en-US; zh
ManifestPath = C:\Debug\TheLibrary.dll
AssemblyDirectory = C:\Debug\

================= Begin Activation Context Generation. Input Parameter: Flags = 0 ProcessorArchitecture = x86 CultureFallBacks = en-US;en ManifestPath = C:\Debug\TheLibrary.dll AssemblyDirectory = C:\Debug\

INFO:解析清单文件C:\Debug\TheLibrary.dll。
信息:清单定义身份是(null)。
信息:参考:Microsoft.VC90.DebugCRT,processorArchitecture =x86,publicKeyToken =1fc8b3b9a1e18e3b,type =win32,version =9.0.21022.8
信息:解析参考Microsoft.VC90 .DebugCRT,ProcessorArchitecture用于= 86 公钥= 1fc8b3b9a1e18e3b,类型= Win32的,版本= 9.0.21022.8。
信息:解决ProcessorArchitecture x86的引用。
信息:解决文化参考中立。
信息:应用绑定策略。
信息:找不到发布商政策。
INFO:找不到绑定策略重定向。
信息:开始装配探测。
信息:没有在WinSxS中找到程序集。
INFO:尝试在C:\Windows\assembly\GAC_32\Microsoft.VC90.DebugCRT\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.DebugCRT.DLL探测清单。
INFO:尝试在C:\Debug\Microsoft.VC90.DebugCRT.DLL探测清单。
INFO:尝试在C:\Debug\Microsoft.VC90.DebugCRT.MANIFEST探测清单。
信息:尝试在C:\Debug\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.DLL上检测清单。
INFO:尝试在C:\Debug\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.MANIFEST上查询清单。

INFO:没有找到文档清单中性。
INFO:结束装配探测。
错误:无法解析参考Microsoft.VC90.DebugCRT,processorArchitecture =x86,publicKeyToken =1fc8b3b9a1e18e3b,type =win32,version =9.0.21022.8。
错误:激活上下文生成失败。
终止激活上下文生成。

INFO: Parsing Manifest File C:\Debug\TheLibrary.dll. INFO: Manifest Definition Identity is (null). INFO: Reference: Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" INFO: Resolving reference Microsoft.VC90.DebugCRT,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.DebugCRT\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.DebugCRT.DLL. INFO: Attempt to probe manifest at C:\Debug\Microsoft.VC90.DebugCRT.DLL. INFO: Attempt to probe manifest at C:\Debug\Microsoft.VC90.DebugCRT.MANIFEST. INFO: Attempt to probe manifest at C:\Debug\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.DLL. INFO: Attempt to probe manifest at C:\Debug\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.MANIFEST. INFO: Did not find manifest for culture Neutral. INFO: End assembly probing. ERROR: Cannot resolve reference Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8". ERROR: Activation Context generation failed. End Activation Context Generation.

无法解析参考Microsoft.VC90.DebugCRT,processorArchitecture = ...

Cannot resolve reference Microsoft.VC90.DebugCRT,processorArchitecture=...

任何想法?

推荐答案


依赖程序集Microsoft.VC90.DebugCRT,...可以没有找到

Dependent Assembly Microsoft.VC90.DebugCRT,... could not be found

是的,只能在安装了Visual Studio的机器上找到。 DebugCRT不可分发。编写C或C ++代码并为其部署调试版本是没有意义的,这是一个批次较慢。

Yes, that can only be found on a machine that has Visual Studio installed. The DebugCRT is not distributable. And it doesn't make sense to write C or C++ code and deploy the debug build for it, it is a lot slower.

部署您的DLL的版本构建版本。和VC ++库,其中一个安装程序项目的先决条件中的复选框之一。

Deploy the Release build version of your DLL. And the VC++ Libraries, one of the check boxes in the Prerequisites of a Setup project.

这篇关于应用程序无法启动,因为其并行配置不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆