解决"应用程序配置不正确,程序无法启动"
2008-01-09 14:33
309 查看
在使用 VC++2005环境下生成的程序,放置到未安装VC环境的机器下后,有时候会出现程序无法执行的错误,其提示是:应用程序配置不正确,程序无法启动,重新安装应用程序可能解决问题。
实际上,重装是解决不了问题的,解决的一种方法是查看*exe.intermediate.manifest文件,比如文件的内容是:
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.MFC' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>
需要注意这个文件中的3个关键词:Microsoft.VC80.CRT,Microsoft.VC80.MFC和Microsoft.VC80.DebugCRT。寻找到...."Program Files"Microsoft Visual Studio 8"VC"redist文件夹下面,找到这些名称的子文件夹,拷贝它们下面所有的文件到希望发布的EXE文件下面,一起打包。这些文件也就是mfc80.dll,msvcr80.dll,msvcp80.dll和Microsoft.VC80.CRT.manifest等。此错误发生的原因是在目标机器上需要这些文件的支持。
实际上,重装是解决不了问题的,解决的一种方法是查看*exe.intermediate.manifest文件,比如文件的内容是:
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.MFC' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>
需要注意这个文件中的3个关键词:Microsoft.VC80.CRT,Microsoft.VC80.MFC和Microsoft.VC80.DebugCRT。寻找到...."Program Files"Microsoft Visual Studio 8"VC"redist文件夹下面,找到这些名称的子文件夹,拷贝它们下面所有的文件到希望发布的EXE文件下面,一起打包。这些文件也就是mfc80.dll,msvcr80.dll,msvcp80.dll和Microsoft.VC80.CRT.manifest等。此错误发生的原因是在目标机器上需要这些文件的支持。
相关文章推荐
- “应用程序配置不正确,程序无法启动” 解决办法(vc2008 sp1)
- “应用程序配置不正确,程序无法启动”的解决方法资料收集
- VS2005 解决"应用程序配置不正确,程序无法启动"问题(小问题,大思想)
- “应用程序配置不正确,程序无法启动” 解决办法(vc2008 sp1)
- VS2005 解决"应用程序配置不正确,程序无法启动"问题
- 解决VS在Release下编译程序报“应用程序无法启动,应用程序的并行配置不正确”的问题
- 应用程序配置不正确,程序无法启动 的解决方法资料收集
- “应用程序配置不正确,程序无法启动”的解决方法资料收集
- 解决"应用程序配置不正确,程序无法启动"
- “应用程序配置不正确,程序无法启动”的解决方法资料收集
- VS2008程序发布遇到“应用程序配置不正确,程序无法启动”问题的解决
- “应用程序配置不正确,程序无法启动”的解决方法资料收集
- 解决"应用程序配置不正确,程序无法启动"
- “应用程序配置不正确,程序无法启动”的解决方法资料收集
- VC运行时库与应用程序配置不正确,程序无法启动”的解决方法资料收集
- 解决"应用程序配置不正确,程序无法启动"
- “应用程序配置不正确, 程序无法启动”解决方法
- Unable to load dll 应用程序配置不正确,程序无法启动 的解决方法
- “应用程序配置不正确,程序无法启动”的解决方法
- 转 解决"应用程序配置不正确,程序无法启动"