错误:“应用程序无法启动,因为其并行配置不正确”

发布于 2024-10-07 02:59:14 字数 1853 浏览 6 评论 0原文

我使用 Visual Studio 2008 创建了一个 MFC 应用程序,该应用程序在 Windows XP 上运行良好。但是当我尝试在 Windows Vista 中执行相同的 EXE 文件时,我得到:

错误:应用程序无法启动,因为其并行配置不正确

当我检查事件查看器时,下面是它所说的内容:

Log Name:      Application
Source:        SideBySide
Date:          12/10/2010 10:06:08 AM
Event ID:      33
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      WIN-8A4INI0BH2R
Description:
Activation context generation failed for "C:\MyApp.exe". Dependent Assembly Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="SideBySide" />
    <EventID Qualifiers="49409">33</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2010-12-10T04:36:08.000Z" />
    <EventRecordID>181</EventRecordID>
    <Channel>Application</Channel>
    <Computer>WIN-8A4INI0BH2R</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"</Data>
    <Data>
    </Data>
    <Data>

    </Data>
    <Data>C:\MyApp.exe</Data>
    <Data>
    </Data>

    <Data>
    </Data>
  </EventData>
</Event>

I have created an MFC application using Visual Studio 2008 which is working fine on Windows XP. But when I try to execute the same EXE file in Windows Vista I am getting:

Error: Application has failed to start because its side-by-side configuration is incorrect

When I check the event viewer then below is what it says:

Log Name:      Application
Source:        SideBySide
Date:          12/10/2010 10:06:08 AM
Event ID:      33
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      WIN-8A4INI0BH2R
Description:
Activation context generation failed for "C:\MyApp.exe". Dependent Assembly Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="SideBySide" />
    <EventID Qualifiers="49409">33</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2010-12-10T04:36:08.000Z" />
    <EventRecordID>181</EventRecordID>
    <Channel>Application</Channel>
    <Computer>WIN-8A4INI0BH2R</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"</Data>
    <Data>
    </Data>
    <Data>

    </Data>
    <Data>C:\MyApp.exe</Data>
    <Data>
    </Data>

    <Data>
    </Data>
  </EventData>
</Event>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

安穩 2024-10-14 02:59:14

目标计算机上没有 CRT 运行时 DLL。为了避免这种情况,您可以安装 VC9 可再发行组件,或者可以将您的程序与运行时静态链接 (更多信息)。 这个问题也可能有帮助。

You have no CRT runtime DLL on the target machine. To avoid this you can install VC9 redistributables or you can link your program with the runtime statically (more info). This question could be helpful also.

2024-10-14 02:59:14

我意识到这是一个旧线程,但我遇到了同样的错误,并且没有一个 SO 线程引用了我遇到的问题的原因。
我使用了 sxstrace 程序,它向我指出配置文件中的 XML 存在语法问题!

I realise this is an old thread but I got this same error and none of the SO threads have a reference to the cause of the issue I had.
I used the sxstrace program and it pointed me to the config file where there was a syntax issue with the XML !

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文