我正在尝试安装并运行x64 Mercurial 3.8.3,但是我收到以下错误:
D:\Program Files\Mercurial>hg.exe
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
运行sxstrace.exe
会显示以下日志:
=================
Begin Activation Context Generation.
Input Parameter:
Flags = 0
ProcessorArchitecture = AMD64
CultureFallBacks = en-US;en
ManifestPath = D:\Program Files\Mercurial\hg.exe
AssemblyDirectory = D:\Program Files\Mercurial\
Application Config File =
-----------------
INFO: Parsing Manifest File D:\Program Files\Mercurial\hg.exe.
INFO: Manifest Definition Identity is (null).
INFO: Reference: Microsoft.VC90.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"
INFO: Resolving reference Microsoft.VC90.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
INFO: Resolving reference for ProcessorArchitecture amd64.
INFO: Resolving reference for culture Neutral.
INFO: Applying Binding Policy.
INFO: Find publisher policy at C:\WINDOWS\WinSxS\manifests\amd64_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9177_none_acd40623e1d81331.manifest
INFO: Begin assembly probing.
INFO: End assembly probing.
ERROR: Activation Context generation failed.
End Activation Context Generation.
好像在寻找我的电脑上不存在的C:\WINDOWS\WinSxS\manifests\amd64_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9177_none_acd40623e1d81331.manifest
。我认为这个文件来自Microsoft Visual C++ 2008 Redistributable Package (x64),但是当我安装/修复它时,我仍然会遇到同样的错误。
我也遇到了这个same package from chocolatey,但它的版本历史似乎表明它的最新版本是 9.0.30729.6161 ,而不是 9.0.30729.9177 我在找。我不知道在哪里可以找到这个版本的包。
我已经看过这些与我的情况非常相似的问题:
编辑:我刚刚使用x86 Mercurial重新安装,它可以运行。不理想,但至少它是一种解决方法。
答案 0 :(得分:0)
Microsoft Visual C ++ 2008 Redistributable Package 9.0.30729.9177似乎不公开,所以我最终重新安装了Windows。现在我可以在安装后运行Mercurial。