激活上下文生成失败。 VC运行时错误

时间:2014-06-02 13:38:38

标签: c++ visual-c++ runtime

我尝试安装两种服务,都是用c ++开发的。当我尝试一对一安装时出现这些错误:

Activation context generation failed for "C:\Timer.exe". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30729.6161" could not be found. Please use sxstrace.exe for detailed diagnosis.

第二次服务:

Activation context generation failed for "C:\Porc.exe". Dependent Assembly Microsoft.VC80.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0" could not be found. Please use sxstrace.exe for detailed diagnosis.

我尝试安装这两个软件包:Microsoft Visual C++ 2008 Redistributable Package (x64)Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package ATL Security Update

但在点击setup.exe个文件后,设置会关闭并在一段时间后自行消失。

我认为上面的软件包的另一件事是针对8.0.50608.0所以我需要安装一些其他软件包9.0.30729.6161是否有一个软件包就足够了他们两个可以请你帮忙。我正在使用Windows Server 2008 R2

1 个答案:

答案 0 :(得分:0)

请注意DebugDependent Assembly Microsoft.VC90.DebugCRT中的Microsoft.VC80.DebugCRT字样。您链接到的公共可再发行组件不提供DebugCRT,也不为它们提供再分发权限。因此,如果您在内部使用它,则可以在具有Visual Studio的计算机上使用它。如果你需要在另一台机器上测试它,你需要在那里安装DebugCRT(Visual Studio包含一个合并模块,最后我看到,但不允许进一步重新分发),或者编译和发布项目的配置。