The application has failed ... (Incorrect application configuration) _win Server

Source: Internet
Author: User

In our development projects, there may be cases where debugging cannot be done on this machine. At this time we typically use VM (VMware) to build a virtual machine environment, and then put the compiled program in the virtual machine environment to perform debugging. In some cases, however, whether we compile a debug or release version, it is reported in the virtual machine environment that the application could not be started because the application was configured incorrectly. Reinstalling the application may correct the problem. "(The application has failed to start because it side-by-side configuration is incorrect. Please, the application event log or use the command-line sxstrace.exe for more detail.) Such a mistake. Reprint please indicate the source.


Before I encountered such a problem, it is generally believed that several CRT libraries are not copied to the virtual machine environment. But this method did not work for the scene that I met, so I mounted the development environment VS2005 of my program in the virtual machine. However, the files generated in the real machine can still not run in the virtual machine, still reported the above error.

In fact, Microsoft on its website provides a solution, but also very simple. I can not find the original address, I only for my VS2005 made a solution for example.

1 Establish a setup program.

2 Project Files add the merge Module

3 from the system disk: \program Files\Common Files\merge Modules Choose to add the required files

Because my IDE environment is XP (32bit) +vs2005, I chose the following files (all vc80+x86 files in my environment, which may be different in different environments)

Policy_8_0_microsoft_vc80_openmp_x86.msm
Policy_8_0_microsoft_vc80_mfcloc_x86.msm
Policy_8_0_microsoft_vc80_mfc_x86.msm
Policy_8_0_microsoft_vc80_debugopenmp_x86.msm
Policy_8_0_microsoft_vc80_debugmfc_x86.msm
Policy_8_0_microsoft_vc80_debugcrt_x86.msm
Policy_8_0_microsoft_vc80_crt_x86.msm
Policy_8_0_microsoft_vc80_atl_x86.msm
Microsoft_vc80_openmp_x86.msm
Microsoft_vc80_mfcloc_x86.msm
Microsoft_vc80_mfc_x86.msm
Microsoft_vc80_debugopenmp_x86.msm
Microsoft_vc80_debugmfc_x86.msm
Microsoft_vc80_debugcrt_x86.msm
Microsoft_vc80_crt_x86.msm
Microsoft_vc80_atl_x86.msm

4 Generate debug and release files

5 Installing the files generated in the virtual machine in the previous step

After the above steps, we make the debug and release version of the program can be in the virtual machine operation.

Thank you for reading, I hope to help you, thank you for your support for this site!

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.