When you run a Visual C++ executable file or DLL that contains embedded debug information, the application does not start. Additionally, you receive the following error message:
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.This problem occurs if the Microsoft Visual C++ Redistributable Package (VCRedist.exe) has been used to deploy Visual C++ DLLs on the computer.
This issue occurs when one of the following conditions is true:
- The VCRedist.exe file that is installed is for a different version of Visual C++.
- The VCRedist.exe file did not install the debug build of Visual C++ DLLs on the computer.
To resolve this issue, you can use the Dependency Walker tool to document all the DLLs that a Visual C++ application uses. To do this, use the following methods in the order that they are presented.
Method 1: Install the Dependency Walker toolThe Dependency Walker tool is part of the Windows Support Tools. The Support Tools are not installed with the Windows operating system. Instead, you must install them separately from the \Support\Tools folder of the Windows operating system CD. To install Windows Support Tools, see the "Install Windows Support Tools" section of the following Microsoft Web site:
Method 2: Determine which DLLs the application depends onTo determine which DLLs the application depends on, use the Dependency Walker tool to scan the Visual C++ application. To do this, follow these steps:
- In Windows Explorer, locate the application and any DLLs that the application requires.
- Right-click the application, and then click View Dependencies.
Method 3: Copy dependent DLL filesIf an older version of the debug version of the CRT is installed, or if the files are not present on the computer, you must provide copies of the debug version of the CRT that was used to build the Visual C++ application. To do this, follow these steps:
- On the development computer, locate the debug version of the CRT. This version is located in the following Visual Studio folder:..\VC\redist\Debug_NonRedist
- Copy the necessary DLL file assemblies from this folder.
- On the computer on which you want to run the application, copy the DLL file assemblies into a folder that has the same name and path under the folder for the Visual C++ application.
Makale No: 948854 - Son İnceleme: 30 May 2008 - Düzeltme: 1