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."