激活上下文生成失败,依赖程序集,sidebyside,事件ID 33

时间:2018-06-18 17:08:54

标签: c++

我正在尝试测试在MSVC 2008中开发的DLL,当我尝试执行使用DLL的应用程序时,我在应用程序事件日志中获得了一个条目:

Activation context generation failed for "C:\Program....." Dependent Assembly Microsoft.VC90.DebugCRT.processorArchitecture="x86",publicKeyTokeb="lfc8b3b9a1e18e3v",type="win32",version="9.0.210122,8" could not be found.  Please use sxtrace.exe for detailed diagnosis.

我下载并安装了9.021022版本的分发版,这是来自“程序和功能”:

Microsoft Visual C++ 2008 Redistributable - x86 9.0.21022
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17
Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319

即使安装了这些,它仍会在事件查看器中出现相同的错误。

我不确定如何使用sxtrace.exe

正在运行的操作系统:

Microsoft Windows [Version 10.0.16299.125]

1 个答案:

答案 0 :(得分:0)

重新编译了要发布的项目,目标上存在发布dll,目标上不需要调试版本,现在可以正常运行了。