解决Windows应用程序Side-by-Side错误
2013-01-31 16:38
344 查看
起因
前两天写了个小工具,在我的机器跑得好好的,QA的测试机里面却死活跑不起来,一运行就出现一个圣诞框,报一个side by side的错误: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.
郁闷至极,不过这个对话框却提供了一点额外的信息:
use the command-line sxstrace.exe tool for more detail
于是Google了一下,sxstrace.exe是一个跟踪调试应用程序的工具,看起来很不错的样子。
解决过程
按照 这个 帖子,先打开sxstrace.exe的调试模式:sxstrace trace -logfile:C:/trace.bin
然后再打开应用程序,这时候在C盘根目录的trace.bin已经生成了,于是退出sxstrace,再运行以下命令:
sxstrace parse -logfile:C:/trace.bin -outfile:C:/trace.log
因为sxstrace trace出来的文件是二进制的,所以用上述命令将其转换成txt的。
打开trace.log,内容如下:
================= Begin Activation Context Generation. Input Parameter: Flags = 0 ProcessorArchitecture = Wow32 CultureFallBacks = en-US;en ManifestPath = C:\Users\ADMINI~1\AppData\Local\Temp\1\7zS4BF7914E\installer.exe AssemblyDirectory = C:\Users\ADMINI~1\AppData\Local\Temp\1\7zS4BF7914E\ Application Config File = ----------------- INFO: Parsing Manifest File C:\Users\ADMINI~1\AppData\Local\Temp\1\7zS4BF7914E\installer.exe. INFO: Manifest Definition Identity is (null). INFO: Reference: Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" INFO: Resolving reference Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8". INFO: Resolving reference for ProcessorArchitecture WOW64. INFO: Resolving reference for culture Neutral. INFO: Applying Binding Policy. INFO: No publisher policy found. INFO: No binding policy redirect found. INFO: Begin assembly probing. INFO: Did not find the assembly in WinSxS. INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_32\Microsoft.VC90.CRT\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.CRT.DLL. INFO: Did not find manifest for culture Neutral. INFO: End assembly probing. INFO: Resolving reference for ProcessorArchitecture x86. INFO: Resolving reference for culture Neutral. INFO: Applying Binding Policy. INFO: No publisher policy found. INFO: No binding policy redirect found. INFO: Begin assembly probing. INFO: Did not find the assembly in WinSxS. INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_32\Microsoft.VC90.CRT\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.CRT.DLL. INFO: Attempt to probe manifest at C:\Users\ADMINI~1\AppData\Local\Temp\1\7zS4BF7914E\Microsoft.VC90.CRT.DLL. INFO: Attempt to probe manifest at C:\Users\ADMINI~1\AppData\Local\Temp\1\7zS4BF7914E\Microsoft.VC90.CRT.MANIFEST. INFO: Attempt to probe manifest at C:\Users\ADMINI~1\AppData\Local\Temp\1\7zS4BF7914E\Microsoft.VC90.CRT\Microsoft.VC90.CRT.DLL. INFO: Attempt to probe manifest at C:\Users\ADMINI~1\AppData\Local\Temp\1\7zS4BF7914E\Microsoft.VC90.CRT\Microsoft.VC90.CRT.MANIFEST. INFO: Did not find manifest for culture Neutral. INFO: End assembly probing. ERROR: Cannot resolve reference Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8". ERROR: Activation Context generation failed. End Activation Context Generation.
看起来是
Microsoft.VC90.CRT.dll这个reference没有找到,这个是属于
Visual C++ 2008 Redistributable的一个动态链接库。去M$的网站下一个装上,一切就OK了。
总结
对于windows我一向没有好感,不评价,写这篇blog主要是为了记录sxstrace.exe这个 工具,感觉用来debug不错。
相关文章推荐
- 解决Windows应用程序不能加载C++组件 Side-by-Side错误
- 运行错误:应用程序无法启动因为并行配置不正确。the application has failed to start because its side-by-side configuration is incorrect 解决方法
- windows 2003 64位系统php运行报错:1%不是有效的win32应用程序解决
- Qt Windows应用程序在MinGW中可运行而双击不能运行解决方法
- 解决QTP在某些windows应用程序中对edit控件的set失败问题
- 只运行许可的Windows应用程序 gpedit.msc锁死解决
- 深入浅出C#2008从入门到提高Step By Step(五)Windows应用程序常用控件类(11)-ProgressBar
- 深入浅出C#2008从入门到提高Step By Step(五)Windows应用程序常用控件类(7)-ListBox
- windows side by side assemblies
- windows 2003添加删除windows组件中无iis应用程序服务器项的解决方法
- Windows 7下打开QQ出现应用程序无法启动的解决方法
- windows media player 出现内部应用程序错误解决办法
- 解决Azure publish “the remote desktop configuration was not generated by windows azure Tools”问题
- 解决QTP在某些windows应用程序中对edit控件的set失败问题
- 深入浅出C#2008从入门到提高Step By Step(五)Windows应用程序常用控件类(8)-ComboBox
- 深入浅出C#2008从入门到提高Step By Step(六)Windows应用程序实例(2)
- 解决windows蓝屏 STOP:c000021a {Fatal System Error} (by 星空武哥)
- Zmodem transfer canceled by remote side问题的解决办法!
- 解决EVC安装后导致右下角出现停用的设备或应用程序 Virtual PC/Windows CE Emulator drive 导致电脑启动很慢的问题
- 解决 side-by-side 问题的一种方法