Application initialization Normal (0XC015002) failure workaround

Source: Internet
Author: User
Tags winsxs folder

VS2005 sidebyside manifest error Microsoft.VC80.MFC Microsoft.VC80.CRT Microsoft.VC80.MFCLOC msvcr80.dll mfc80.dll EventLog VC2005 Compiled Program files. The manifest method is used to specify the DLL file. For Win98, Win2000 system, the EXE file and the VC DLL Connection library put together to become. For WinXP, Win2003 system will be more trouble, VC connection library By default is placed in the WinSxS folder, resulting in these systems. Copy the exe file directly. It is often impossible to execute (Cannot find Msvcr80.dll, mfc80.dll files, etc.). or an error in the event log. Solution: Form One, install version 2005 Vcredist_x86.exe on the target system.

Mode two, directly copy the VS8 folder under the Vc/redist/x86/folder Microsoft.VC80.MFC, Microsoft.VC80.CRT, Microsoft.VC80.MFCLOC several folders. To the folder where the EXE resides. folder structure such as the following:./myapp.exe./myapp.dll./microsoft.vc80.crt/./microsoft.vc80.mfc/./microsoft.vc80.mfc/ microsoft.vc80.mfcloc/then change the Microsoft.VC80.MFCLOC.manifest file under the Microsoft.VC80.MFCLOC folder. The version= "8.0.50727.42" is changed to Version= "8.0.50608.0". The folder structure of mode two. There is no problem with XP and 2003. However, in win98/win2000, because EXE and DLL are not in the same folder, there will be no DLL found problems.

What better solution is there? Hehe, a foreign Daniel (http://blog.kalmbachnet.de) found a trick: the way three, 1, the first time to compile myapp.exe. In the configuration, choose to generate a separate manifest file, such as: Myapp.exe.manifest.

2, the myapp.exe, myapp.exe.manifest copy to a folder under 3, will Microsoft.VC80.MFC, Microsoft.VC80.CRT, Microsoft.VC80.MFCLOC files under several folders are copied to the folder where Myapp.exe is located.

4, the Microsoft.VC80.MFCLOC.manifest in the file version= "8.0.50727.42", Change version= "8.0.50608.0". 5. Edit Myapp.exe all folders. manifest file, delete the PublicKey key in the file. Usually publickeytoken= "1FC8B3B9A1E18E3B" 6, then perform myapp.exe look.

Application initialization Normal (0XC015002) failure workaround

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.