1

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>
4

2 回答 2

7

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

于 2010-12-10T05:37:55.353 回答
1

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

于 2018-11-15T15:16:12.263 回答