博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
用系统工具sxstrace检查缺少的VC运行时组件
阅读量:5084 次
发布时间:2019-06-13

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

在管理员运行的命令提示符中输入sxstrace获得如下帮助:

C:\>sxstraceWinSxs Tracing Utility.Usage: SxsTrace [Options]Options:   Trace -logfile:FileName [-nostop]       Enabling tracing for sxs.       Tracing log is saved to FileName.       If -nostop is specified, will not prompt to stop tracing.   Parse -logfile:FileName -outfile:ParsedFile  [-filter:AppName]       Translate the raw trace file into a human readable format and save the result to ParsedFile.       Use -filter option to filter the output.   Stoptrace       Stop the trace if it is not stopped before.Example:  SxsTrace Trace -logfile:SxsTrace.etl          SxsTrace Parse -logfile:SxsTrace.etl -outfile:SxsTrace.txt

选项:

Trace 开始跟踪,并生成跟踪日志文件。

Parse 解析跟踪日志文件为文本文件。

Stoptrace 停止跟踪。

使用方法:

1)在管理员运行的命令提示符里输入下面命令开始跟踪

C:\>sxstrace trace -logfile:sxstrace.etlTracing started. Trace will be saved to file sxstrace.etl.Press Enter to stop tracing...

2)启动一个有问题的程序(这里以一个Thunder.exe为例)

点OK关闭错误提示。

3)回到命令提示符里,按回车键(Enter)停止跟踪。sxstrace.etl文件已经生成,然后输入下面命令解析sxstrace.etl

C:\>sxstrace parse -logfile:sxstrace.etl -outfile:sxstrace.txtParsing log file sxstrace.etl...Parsing finished! Output saved to file sxstrace.txt.C:\>notepad sxstrace.txtC:\>

打开sxstrace.txt

=================Begin Activation Context Generation.Input Parameter:	Flags = 0	ProcessorArchitecture = Wow32	CultureFallBacks = en-US;en	ManifestPath = C:\Program Files (x86)\Thunder\Program\Thunder.exe	AssemblyDirectory = C:\Program Files (x86)\Thunder\Program\	Application Config File = -----------------INFO: Parsing Manifest File C:\Program Files (x86)\Thunder\Program\Thunder.exe.	INFO: Manifest Definition Identity is (null).	INFO: Reference: Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"	INFO: Reference: Microsoft.VC90.ATL,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: Find publisher policy at C:\Windows\WinSxS\manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9158_none_f47f259ef656232a.manifest				INFO: Publisher Policy redirected assembly version.				INFO: Post policy assembly identity is Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30729.9158".			INFO: Begin assembly probing.				INFO: Attempt to probe manifest at C:\Windows\WinSxS\manifests\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9158_none_5091b51ebcb97cdc.manifest.				INFO: Manifest found at C:\Windows\WinSxS\manifests\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9158_none_5091b51ebcb97cdc.manifest.			INFO: End assembly probing.INFO: Resolving reference Microsoft.VC90.CRT.mui,language="*",processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30729.9158".	INFO: Resolving reference for ProcessorArchitecture WOW64.		INFO: Resolving reference for culture en-US.			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.mui\9.0.30729.9158_en-US_1fc8b3b9a1e18e3b\Microsoft.VC90.CRT.mui.DLL.				INFO: Did not find manifest for culture en-US.			INFO: End assembly probing.		INFO: Resolving reference for culture en.			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.mui\9.0.30729.9158_en_1fc8b3b9a1e18e3b\Microsoft.VC90.CRT.mui.DLL.				INFO: Did not find manifest for culture en.			INFO: End assembly probing.	INFO: Resolving reference for ProcessorArchitecture x86.		INFO: Resolving reference for culture en-US.			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.mui\9.0.30729.9158_en-US_1fc8b3b9a1e18e3b\Microsoft.VC90.CRT.mui.DLL.				INFO: Did not find manifest for culture en-US.			INFO: End assembly probing.		INFO: Resolving reference for culture en.			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.mui\9.0.30729.9158_en_1fc8b3b9a1e18e3b\Microsoft.VC90.CRT.mui.DLL.				INFO: Did not find manifest for culture en.			INFO: End assembly probing.INFO: Resolving reference Microsoft.VC90.ATL,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.ATL\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.ATL.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.ATL\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.ATL.DLL.				INFO: Attempt to probe manifest at C:\Program Files (x86)\Thunder\Program\Microsoft.VC90.ATL.DLL.				INFO: Attempt to probe manifest at C:\Program Files (x86)\Thunder\Program\Microsoft.VC90.ATL.MANIFEST.				INFO: Attempt to probe manifest at C:\Program Files (x86)\Thunder\Program\Microsoft.VC90.ATL\Microsoft.VC90.ATL.DLL.				INFO: Attempt to probe manifest at C:\Program Files (x86)\Thunder\Program\Microsoft.VC90.ATL\Microsoft.VC90.ATL.MANIFEST.				INFO: Did not find manifest for culture Neutral.			INFO: End assembly probing.	ERROR: Cannot resolve reference Microsoft.VC90.ATL,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".ERROR: Activation Context generation failed.End Activation Context Generation.
sxstrace.txt

搜索ERROR,发现错误描述:

ERROR: Cannot resolve reference Microsoft.VC90.ATL,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".ERROR: Activation Context generation failed.

意思是缺少VC90运行库。然后去微软下载这个运行库安装就修复了运行库依赖问题了。


 

VC++运行时的所有版本:

摘录如下:

Visual Studio 2013 (VC++ 12.0)Microsoft Visual C++ Redistributable Packages for Visual Studio 2013Visual Studio 2012 (VC++ 11.0)Microsoft Visual C++ Redistributable Packages for Visual Studio 2012 Update 4Visual Studio 2010 (VC++ 10.0) SP1Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package MFC Security UpdateVisual Studio 2008 (VC++ 9.0) SP1Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package MFC Security UpdateVisual Studio 2005 (VC++ 8.0) SP1Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update

-

转载于:https://www.cnblogs.com/Bob-wei/p/4576837.html

你可能感兴趣的文章
oracle select for update
查看>>
salt运行时遇到的常见的问题
查看>>
python面试十题
查看>>
javaEE-----------servlet核心知识
查看>>
FME简介
查看>>
找出数组中两个只出现一次的数字
查看>>
在sql的函数里面不能使用insert语句,估计update、delete也不行,改为存储过程就行了。...
查看>>
加了synchronized后还是不安全的问题
查看>>
[Oracle] SQL*Loader 详细使用教程(4)- 字段列表
查看>>
02:云监控
查看>>
CoreOS中随着系统启动Docker Container
查看>>
强制关闭iPhone iPad AppleWatch MacOS
查看>>
使用DirectShow驱动摄像头
查看>>
Scala详细环境安装与配置
查看>>
ajaxFileUpload带参数提交(亲测可用)
查看>>
如何做一个比较酷的界面切换【Windows Phone】
查看>>
23. Merge k Sorted Lists(js)
查看>>
Canu Quick Start(快速使用Canu)
查看>>
How to debug the CPU usage 100
查看>>
[1]传奇3服务器源码分析一 LoginGate
查看>>