VC++2008 application configuration is incorrect __c++

Source: Internet
Author: User

When you use the VS2008 C + + development program, the program you developed is not installed. NET, "the application is incorrectly configured and the program cannot run"

The reason is that the versions of MFC are different.

When you use a program that is generated in a vc++2005 environment and placed under a machine that does not have a VC environment installed, there are times when the program cannot perform an error, prompting you that the application may not be configured correctly, the program will not start, and reinstalling the application might solve the problem.
In fact, reloading can not solve the problem, one way to resolve is to view the *exe.intermediate.manifest file, such as the contents of the file is:

<?xml version= ' 1.0 ' encoding= ' UTF-8 ' standalone= ' yes '?>
<assembly xmlns= ' urn:schemas-microsoft-com:asm.v1 ' manifestversion= ' 1.0 ' >
<trustinfo xmlns= "Urn:schemas-microsoft-com:asm.v3" >
<security>
<requestedPrivileges>
<requestedexecutionlevel level= ' asinvoker ' uiaccess= ' false '/>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyidentity type= ' Win32 ' Name= ' Microsoft.VC90.DebugCRT ' version= ' 9.0.21022.8 's ' processorarchitecture= ' publickeytoken= ' 1fc8b3b9a1e18e3b '/>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyidentity type= ' Win32 ' Name= ' Microsoft.VC90.DebugMFC ' version= ' 9.0.21022.8 's ' processorarchitecture= ' publickeytoken= ' 1fc8b3b9a1e18e3b '/>
</dependentAssembly>
</dependency>
</assembly>

Take note of the 3 keywords in this file: Microsoft.vc90.crt,microsoft.vc90.mfc and Microsoft.VC90.DebugCRT. Looking for .... "Program Files" Microsoft Visual Studio 8 "VC" Redist folder, locate the subfolders of these names, copy all the files below to the EXE file you want to publish, and pack them together. These documents are Mfc90.dll,msvcr90.dll,msvcp90.dll and Microsoft.VC90.CRT.manifest. This error occurs because support for these files is required on the target machine.
When you see the last known, the software appears "the application failed to start because the application was configured incorrectly."

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.