应用程序无法启动,因为它的并排配置不正确

本文介绍了应用程序无法启动,因为它的并排配置不正确的处理方法,对大家解决问题具有一定的参考价值

问题描述

未处理的异常:System.IO.FileLoadException:无法加载文件或组装 'TheLibrary, Version=1.2.3905.36284, Culture=neutral,PublicKeyToken=14 04827c3a8f2601' 或其依赖项之一.该应用程序无法启动,因为它的并排配置不正确.请参阅应用程序事件日志了解更多详细信息.(HRESULT 例外:0x800736B1)文件名:'TheLibrary,版本=1.2.3905.36284,文化=中性,PublicKeyToken=1404827c3a8f2601' --->System.Runtime.InteropServices.COMException (0x800 736B1):应用程序无法启动,因为它的并排配置on 不正确.请参阅应用程序事件日志以获取更多详细信息.(HRESULT 的异常: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:projectDebugMyLibrary.dll".从属程序集Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"找不到.详细诊断请使用sxstrace.exe.

Activation context generation failed for "C:projectDebugMyLibrary.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;en ManifestPath = C:Windowssystem32cmd.exeAssemblyDirectory = C:Windowssystem32 应用程序配置文件 =----------------- 信息:解析清单文件 C:Windowssystem32cmd.exe.信息:清单定义身份是Microsoft.Windows.FileSystem.CMD,processorArchitecture="x86",type="win32",version="5.1.0.0".信息:激活上下文生成成功.结束激活上下文一代.

================= Begin Activation Context Generation. Input Parameter: Flags = 0 ProcessorArchitecture = x86 CultureFallBacks = en-US;en ManifestPath = C:Windowssystem32cmd.exe AssemblyDirectory = C:Windowssystem32 Application Config File = ----------------- INFO: Parsing Manifest File C:Windowssystem32cmd.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;en ManifestPath = C:DebugTheLibrary.dll AssemblyDirectory =C:Debug 应用程序配置文件 =----------------- 信息:解析清单文件 C:DebugTheLibrary.dll.信息:清单定义标识为(空).信息:参考:Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"INFO:解析参考Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".信息:正在解析 ProcessorArchitecture x86 的参考.信息:解决文化中性的参考.信息:应用绑定政策.信息:未找到发布者政策.信息:未找到绑定策略重定向.信息:开始装配探测.信息:未在 WinSxS 中找到程序集.信息:尝试在 C:WindowsassemblyGAC_32Microsoft.VC90.DebugCRT9.0.21022.8__1fc8b3b9a1e18e3bMicrosoft.VC90.DebugCRT.DLL 处探测清单.信息:尝试在 C:DebugMicrosoft.VC90.DebugCRT.DLL 处探测清单.信息:尝试在 C:DebugMicrosoft.VC90.DebugCRT.MANIFEST 探测清单.信息:尝试在 C:DebugMicrosoft.VC90.DebugCRTMicrosoft.VC90.DebugCRT.DLL 处探测清单.信息:尝试在 C:DebugMicrosoft.VC90.DebugCRTMicrosoft.VC90.DebugCRT.MANIFEST 探测清单.信息:未找到文化中性的清单.信息:末端装配探测.错误:无法解析参考Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".错误:激活上下文生成失败.结束激活上下文一代.

================= Begin Activation Context Generation. Input Parameter: Flags = 0 ProcessorArchitecture = x86 CultureFallBacks = en-US;en ManifestPath = C:DebugTheLibrary.dll AssemblyDirectory = C:Debug Application Config File = ----------------- INFO: Parsing Manifest File C:DebugTheLibrary.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:WindowsassemblyGAC_32Microsoft.VC90.DebugCRT9.0.21022.8__1fc8b3b9a1e18e3bMicrosoft.VC90.DebugCRT.DLL. INFO: Attempt to probe manifest at C:DebugMicrosoft.VC90.DebugCRT.DLL. INFO: Attempt to probe manifest at C:DebugMicrosoft.VC90.DebugCRT.MANIFEST. INFO: Attempt to probe manifest at C:DebugMicrosoft.VC90.DebugCRTMicrosoft.VC90.DebugCRT.DLL. INFO: Attempt to probe manifest at C:DebugMicrosoft.VC90.DebugCRTMicrosoft.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=...

有什么想法吗?

推荐答案

无法找到依赖程序集 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.

这篇关于应用程序无法启动,因为它的并排配置不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,WP2

admin_action_{$_REQUEST[‘action’]}

do_action( "admin_action_{$_REQUEST[‘action’]}" )动作钩子::在发送“Action”请求变量时激发。Action Hook: Fires when an ‘action’ request variable is sent.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$_REQUEST['action']引用从GET或POST请求派生的操作。源码(Source)更新版本源码位置使用被使用2.6.0 wp-admin/admin.php:...

日期:2020-09-02 17:44:16 浏览:1170

admin_footer-{$GLOBALS[‘hook_suffix’]}

do_action( "admin_footer-{$GLOBALS[‘hook_suffix’]}", string $hook_suffix )操作挂钩:在默认页脚脚本之后打印脚本或数据。Action Hook: Print scripts or data after the default footer scripts.目录锚点:#说明#参数#源码说明(Description)钩子名的动态部分,$GLOBALS['hook_suffix']引用当前页的全局钩子后缀。参数(Parameters)参数类...

日期:2020-09-02 17:44:20 浏览:1071

customize_save_{$this->id_data[‘base’]}

do_action( "customize_save_{$this->id_data[‘base’]}", WP_Customize_Setting $this )动作钩子::在调用WP_Customize_Setting::save()方法时激发。Action Hook: Fires when the WP_Customize_Setting::save() method is called.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_data...

日期:2020-08-15 15:47:24 浏览:808

customize_value_{$this->id_data[‘base’]}

apply_filters( "customize_value_{$this->id_data[‘base’]}", mixed $default )过滤器::过滤未作为主题模式或选项处理的自定义设置值。Filter Hook: Filter a Customize setting value not handled as a theme_mod or option.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_date['base'],指的是设置...

日期:2020-08-15 15:47:24 浏览:900

get_comment_author_url

过滤钩子:过滤评论作者的URL。Filter Hook: Filters the comment author’s URL.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/comment-template.php:32610...

日期:2020-08-10 23:06:14 浏览:930

network_admin_edit_{$_GET[‘action’]}

do_action( "network_admin_edit_{$_GET[‘action’]}" )操作挂钩:启动请求的处理程序操作。Action Hook: Fires the requested handler action.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$u GET['action']引用请求的操作的名称。源码(Source)更新版本源码位置使用被使用3.1.0 wp-admin/network/edit.php:3600...

日期:2020-08-02 09:56:09 浏览:877

network_sites_updated_message_{$_GET[‘updated’]}

apply_filters( "network_sites_updated_message_{$_GET[‘updated’]}", string $msg )筛选器挂钩:在网络管理中筛选特定的非默认站点更新消息。Filter Hook: Filters a specific, non-default site-updated message in the Network admin.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分$_GET['updated']引用了非默认的...

日期:2020-08-02 09:56:03 浏览:864

pre_wp_is_site_initialized

过滤器::过滤在访问数据库之前是否初始化站点的检查。Filter Hook: Filters the check for whether a site is initialized before the database is accessed.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/ms-site.php:93910...

日期:2020-07-29 10:15:38 浏览:834

WordPress 的SEO 教学:如何在网站中加入关键字(Meta Keywords)与Meta 描述(Meta Description)?

你想在WordPress 中添加关键字和meta 描述吗?关键字和meta 描述使你能够提高网站的SEO。在本文中,我们将向你展示如何在WordPress 中正确添加关键字和meta 描述。为什么要在WordPress 中添加关键字和Meta 描述?关键字和说明让搜寻引擎更了解您的帖子和页面的内容。关键词是人们寻找您发布的内容时,可能会搜索的重要词语或片语。而Meta Description则是对你的页面和文章的简要描述。如果你想要了解更多关于中继标签的资讯,可以参考Google的说明。Meta 关键字和描...

日期:2020-10-03 21:18:25 浏览:1730

谷歌的SEO是什么

SEO (Search Engine Optimization)中文是搜寻引擎最佳化,意思近于「关键字自然排序」、「网站排名优化」。简言之,SEO是以搜索引擎(如Google、Bing)为曝光媒体的行销手法。例如搜寻「wordpress教学」,会看到本站的「WordPress教学:12个课程…」排行Google第一:关键字:wordpress教学、wordpress课程…若搜寻「网站架设」,则会看到另一个网页排名第1:关键字:网站架设、架站…以上两个网页,每月从搜寻引擎导入自然流量,达2万4千:每月「有机搜...

日期:2020-10-30 17:23:57 浏览:1308