博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
解决Windows应用程序Side-by-Side错误
阅读量:5117 次
发布时间:2019-06-13

本文共 3661 字,大约阅读时间需要 12 分钟。

起因

前两天写了个小工具,在我的机器跑得好好的,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不错。

转载于:https://www.cnblogs.com/ini_always/archive/2013/01/31/2887308.html

你可能感兴趣的文章
本地缓冲区溢出分析
查看>>
针对Web的信息搜集
查看>>
缓冲区溢出与攻防博弈
查看>>
Docker 容器学习笔记
查看>>
网络安全思维导图收藏
查看>>
编写并提取简易 ShellCode
查看>>
C++反汇编: 基础知识(7)
查看>>
Linux 系统下提取 ShellCode
查看>>
VS2013+WDK8.1 驱动开发环境配置
查看>>
远程缓冲区溢出分析
查看>>
Windows 32位-调试与反调试
查看>>
WinDBG 配置内核双机调试
查看>>
WinRAR 去广告的姿势
查看>>
驱动还原:恢复SSDT内核钩子(2)
查看>>
驱动保护:挂接SSDT内核钩子(1)
查看>>
驱动通信:驱动与应用的通信(3)
查看>>
RPC和HTTP
查看>>
shell基本语法
查看>>
测试环境搭建
查看>>
java之高并发锁
查看>>