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

Activation context generation failed. VC Runtime Error

本文关键字:VC 运行时错误 失败 上下文 激活      更新时间:2023-10-16

我正在尝试安装两个服务,它们都是用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可再发行包ATL安全更新

但在点击CCD_ 1文件后,设置就关闭了,过了一段时间就消失了。

另一件事,我相信上面的软件包是针对8.0.50608.0的,所以我需要安装其他软件包9.0.30729.6161吗?有一个软件包就足够了,你能帮我吗。我正在使用Windows Server 2008 R2

注意Dependent Assembly Microsoft.VC90.DebugCRTMicrosoft.VC80.DebugCRT中的单词Debug。您链接到的公共可再分发文件不提供DebugCRT,也不为它们提供再分发权限。因此,如果您在内部使用它,您可以在带有Visual Studio的计算机上使用它。如果你需要在另一台机器上测试它,你要么需要在那里安装DebugCRT(我上次看到的Visual Studio包括一个合并模块,但不允许进一步重新分发(,要么编译和项目的Release配置。