"Because the application configuration is incorrect and the application fails to start, re-installing the application may correct this problem" SOLUTION

Source: Internet
Author: User
Tags vc runtime

VC "because the application configuration is incorrect, the application cannot be started, and re-installing the application may correct this problem" SOLUTION

 

One of the reasons for this problem: the Windows Installer service on your computer is not enabled.
The solution is to open the control panel → manage → service, enable the Windows Installer service, set it to automatic, and then restart the computer.

Cause 2: The Visual Studio Runtime Library is not installed on your computer.
This application is developed in Visual Studio 2005 and later versions. It depends on the corresponding Runtime Library, and this Runtime Library is not installed on your computer. (For applications developed by vc6 or vs2003, if the library file is missing, the system prompts the missing "**. "DLL", but vs2005 or vs2008 only prompts "because the application configuration is incorrect ......".)

The solution is not to reinstall the application, not to reinstall the system, but to install the corresponding Runtime Library (Microsoft Visual C ++ 20 ** redistributable package, that is, vcredist_x86.exe.

★They are compatible with each other to solve the similar problems of most software on your computer.

To view the exact version of the VC running environment of the EXE, you can use NotePad to open the exe. You can see the dependency node at the end of the file to know the exact version number. You can open the. manifest file of the VC runtime environment and view the exact version of the VC runtime environment.

<Dependency>
<Dependentassembly>
<Assemblyidentity type = "Win32" name = "Microsoft. vc90.debugcrt" version = "9.0.21022.8" processorarchitecture = "x86" publickeytoken = "1fc8b3b9a1e18e3b"> </assemblyidentity>
</Dependentassembly>
</Dependency>

You can go to the directory where the vs environment is installed to find the VC running environment:
C: \ Program Files \ Microsoft Visual Studio 9.0 \ Vc \ redist \ debug_nonredist \ x86 \ microsoft. vc90.debugcrt

 

You can also find different running environments in the c: \ windows \ winsxs directory.

 

 

VC "application initialization (0xc0150002) failed. Click OK to terminate the application ." Solution to the error:

Recently, another problem occurs: Execute the EXE compiled by vc2008 on the deployed computer."Application initialization (0xc0150002) failed. Click OK to terminate the application ."If you use NotePad to open the EXE, the dependency node is not found. Therefore, the dependent runtime environment cannot be determined.

Solution:

1. Right-click "my computer"-"manage"-"Event Viewer"-"system" on the desktop, double-click to view the records, and view the four records that reported the error, the message "generate activation context is D: \ applicationprogram \ New Folder \ Server \ log4cxx. DLL failed. Reference error message: the reference assembly is not installed on the system ." And "cannot find the ancillary Assembly Microsoft. vc90.debugcrt". In this way, the initial positioning is caused by the lack of running environment of Microsoft. vc90.debugcrt in log4cxx. dll loaded in the program.

2. Use notepad to open log4cxx. DLL file, find its dependency node, and confirm that its dependent runtime environment is: assemblyidentity type = "Win32" name = "Microsoft. vc90.debugcrt "version =" 9.0.21022.8 "processorarchitecture =" x86"

3. Compile the environment on the computerC: \ windows \ winsxsFind the corresponding DLL and. manifest files in the directory. Solve the problem.

 

 

 

This file has 32-bit (x86) and 64-bit (x64). Please download the file differently.

★Microsoft Visual C ++ 2005 redistributable package:

(X86 ):

Http://www.microsoft.com/downloads/details.aspx? Familyid = 32bc1bee-a3f9-4c13-9c99-220b62a191ee & displaylang = ZH-CN

(X64 ):

Http://www.microsoft.com/downloads/details.aspx? Familyid = 90548130-4468-4bbc-9673-d6acabd5d13b & displaylang = ZH-CN

★Microsoft Visual C ++ 2008 redistributable package (x86 ):

Http://www.microsoft.com/download/en/details.aspx? Displaylang = en & id = 5582

★Microsoft Visual C ++ 2010 redistributable package

(X86 ):

Http://www.microsoft.com/download/en/details.aspx? Id = 5555?

(X64 ):

Http://www.microsoft.com/download/en/details.aspx? Id = 14632?

 

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.