The application's normal initialization (0xc0150002) failed. Please click OK to terminate the program

Source: Internet
Author: User

Reprint: http://hi.baidu.com/kiropower/item/167d96c0f1d71242a9ba9481

Used to use VC6, packaging procedures as long as the corresponding Exe,dll can be run. Recently, a project has been developed with vc2005, using the previous experience, the required DLL and EXE together to the machine to run, a running program on the error, wrong message for the "application configuration is not correct, the program can not start, reinstall the application may solve the problem", so the Internet to check some information, Said to be less vc2005 run the library. So let colleagues also installed a vc2005 run-time library. After loading, run the program is still an error, the error message is "The application of normal initialization (0xc0150002) failed." Please click OK to terminate the program.

So again on the internet to look up data, are said to be missing the manifest file depends on the library, but the less a library. My program requires a Third-party library with Lua, luabind,boost libraries. Find three useful information from the system Tools--"Event Viewer,"
1:generate activation context is C:\Documents and settings\administrator\ desktop \release (3) \luabindd.dll failed. Reference error message: Operation completed successfully.
2:resolve Partial Assembly failed for Microsoft.VC80.DebugCRT. Reference error message: The referenced assembly is not installed on the system.
3: Unable to find the accessory assembly Microsoft.VC80.DebugCRT, the last error is that the referenced assembly is not installed on the system.

After seeing this information, I think it will be due to the failure of the Luabind library load. So I looked at the dependencies in Luabindd.dll.manifest and found that it depended on the debug runtime in Microsoft.VC80.DebugCRT, My program contains only the Microsoft.VC80.CRT release runtime, so I recompile a Lubind release library, modify the project Lib (dependent on Luabind release Lib), recompile, It works fine on a colleague's 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.