先贴错误:应用程序无法运行,并行配置不正确 ,使用命令行sxstrace.exe。百度解决版本

起因:同事给我一 EXE,然后基于 其进行开发 dll和模块,但是无法加入进程,无法运行。

SxsTrace使用

1、程序无法运行, sxstrace.exe进行追踪。

1、测试本地命令能否成功执行。 cmd 下,任意目录,c:\> sxstrace 回车;

2、转(cd)至程序所在目录,运行命令:SxsTrace Trace -logfile:SxsTrace.etl,启动跟踪;

3、运行程序(可以命令行运行);回到命令行,点击回车;

4、继续运行命令:SxsTrace Parse -logfile:SxsTrace.etl -outfile:info.txt,解析跟踪信息为文本;

 信息收集

    • vs2005 debug crt目录: C:\Program Files (x86)\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist\x86
    • 系统运行库目录(Win7 64位) : C:\Windows\winsxs\Manifests
    • Visual Studio 2005正式版的版本号是8.0.50727.42,visual studio 2005 sp1的版本号  8.0.50727.762
    • 在控制面板中,VC2005运行库的情况:Visual c++ 2005 Redistributable 安装版本号分别为 8.0.56366 ,8.0.61000

------------------------------------------------------------------

解析

对于一个拷贝过来的程序,出现 “程序运行错误,检查并行配置,SxsTrace.exe进行追踪。”

追踪之后主要内容。
//重点是下面
 参考是 Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"。
    定义是 Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0"。

=================
开始生成激活上下文。
输入参数:
    Flags = 0
    ProcessorArchitecture = Wow32
    CultureFallBacks = zh-CN;zh-Hans;zh;en-US;en
    ManifestPath = C:\bin\bin\debug\yourapp.exe
    AssemblyDirectory = C:\bin\bin\debug\
    Application Config File =
-----------------
信息: 正在解析清单文件 C:\bin\bin\debug\yourapp.exe。
    信息: 指令清单定义标识是 (null)。
    信息: 参考: Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"
    信息: 参考: Microsoft.VC80.DebugMFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"
    信息: 参考: Microsoft.Windows.Common-Controls,language="*",processorArchitecture="x86",publicKeyToken="6595b64144ccf1df",type="win32",version="6.0.0.0"
    信息: 参考: Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"
//······    
信息: 正在解析清单文件 C:\bin\bin\debug\Microsoft.VC80.DebugCRT.MANIFEST。
    信息: 指令清单定义标识是 Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0"。
    错误: 指令清单中找到的组件标识与所请求组件的标识不匹配。
    //重点是下面
    参考是 Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"。
    定义是 Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0"。
错误: 生成激活上下文失败。
结束生成激活上下文。
View Code

相关文章:

  • 2021-12-31
  • 2021-08-07
  • 2021-11-29
  • 2022-02-01
  • 2022-02-11
  • 2021-09-29
  • 2022-12-23
  • 2022-02-08
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2021-06-25
  • 2022-01-19
相关资源
相似解决方案