安装一个软件到 Windows 2008 R2上提示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的功能。 进入命令行,打开strace.exe的调试模式: sxstrace trace -logfile:C:/trace.bin 然后再打开应用程序,这时候在C盘根目录的trace.bin已经生成了,于是退出sxstrace.exe,再运行以下命令:

sxstrace parse -logfile:C:/trace.bin -outfile:C:/trace.log 因为sxstrace trace出来的文件是二进制的,所以用上述命令将其转换成txt的。

打开这个文件、发现Microsoft.VC90.CRT.dll 这个reference没有找到,这个是属于 Visual C++ 2008 Redistributable 的一个动态链接库,下载一个,刚开始下载了一个X86的不行,后来又下了个X64的可以了。