"The application configuration is incorrect and cannot be started"

Source: Internet
Author: User

After the program generated in the VC ++ 2005 environment is placed on a machine without the VC environment installed, sometimes the program cannot be executed. The prompt is: if the application configuration is incorrect and cannot be started, re-installing the application may solve the problem.

In fact, reinstallation cannot solve the problem. One solution is to view the * exe. Intermediate. manifest file. For example, the file content is:

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

Note the three keywords in this file: Microsoft. vc80.crt, Microsoft. vc80.mfc and Microsoft. vc80.debugcrt. Find .... under the "Program Files" Microsoft Visual Studio 8 "VC" redist folder, find the subfolders of these names, copy all the files under them to the EXE file you want to publish, and package them together. These files are mfc80.dll, msvcr80.dll, msvcp80.dll, and Microsoft. vc80.crt. manifest. This error occurs because the support for these files is required on the target machine.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.