当前位置:  开发笔记 > 后端 > 正文

应用程序无法启动...应用程序配置不正确 - VC++ 2005运行时问题

如何解决《应用程序无法启动应用程序配置不正确-VC++2005运行时问题》经验,为你挑选了1个好方法。

我们将Visual C++ 2003解决方案迁移到Visual 2005,现在我们在部署到干净的XP机器时遇到了问题.

我们的解决方案有一个DLL项目和一个使用此DLL的命令行可执行文件.两个项目都创建并嵌入清单文件.

我们的安装程序还将VC8 CRT运行时从C:\ Program\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT \复制到安装目录.

当我们在干净的Windows XP上安装时,我们会看到错误消息"应用程序无法启动...应用程序配置不正确".

将exe放在Depends.exe中,说:

Error: The Side-by-Side configuration information for "c:\program files\MySoftware\vc8\BENCHMARK.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Error: The Side-by-Side configuration information for "c:\program files\MySoftware\vc8\MYLIB-VC8.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

事件查看器日志:

Dependent Assembly Microsoft.VC80.CRT could not be found and Last Error was The referenced assembly is not installed on your system.

Resolve Partial Assembly failed for Microsoft.VC80.CRT. Reference error message: The referenced assembly is not installed on your system.

Generate Activation Context failed for C:\Program Files\MySoftware\vc8\Benchmark.exe. Reference error message: The operation completed successfully.

我已经读过将msvcp80.dll,msvcr80.dll,msvcm80.dll和Microsoft.VC80.CRT.manifest复制到应用程序文件夹就足够了.

我究竟做错了什么 ?



1> Rob Walker..:

建议不要复制CRT dll.正如Vinay所说,你应该使用正确的合并模块.

如果合并模块不能与您的安装程序技术一起使用,您还可以使用redist install exe:

VS2005 CRT

VS2005 SP1 CRT

作为最后的手段,尝试将整个"Microsoft.VC80.CRT"目录复制到程序exe目录(而不是内容,实际目录).

推荐阅读
乐韵答题
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有