Article ID: 948619 - Last Review: May 28, 2008 - Revision: 2.1

A Visual C++ application may not start after you upgrade to Visual Studio 2005 or to a later version

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.

On This Page

Expand all | Collapse all

SYMPTOMS

Consider the following scenario. You are running a Microsoft Visual C++ application that dynamically links to the MSVC runtime, to the MFC DLLs, or to the ATL DLLs. You upgrade Visual C++ to Microsoft Visual Studio 2005 or to a later version. In this scenario, a Microsoft DLL dependency is missing, and the Visual C++ application does not start on the destination computer.

When you try to start the upgraded application on a target, non-development computer, 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.
Additionally, the System log may contain an error message that resembles one of the following error messages:
Error message 1
The referenced assembly is not installed on your system
Error message 2
Dependent Assembly Microsoft.VC80.CRT could not be found
Error message 3
Dependent Assembly Microsoft.VC90.CRT could not be found

CAUSE

This problem occurs because the following files must be installed in the Windows side-by-side folder (the WinSxS folder):
  • MSVC DLLs
  • MSVCRx0
  • MFCx0
  • ATLx0

RESOLUTION

To resolve this problem, use one of the following methods.

Method 1

Use the Visual Studio Setup project in the Visual C++ solution to install through the Vcredist merge module.

Method 2

Run the appropriate redistribution installer on the destination computer. For example, run the Vcredist_x86.exe file.

To do this, follow these steps:
  1. On the development computer, locate the Vcredist executable file in the following directory:
    Drive:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86
    Note If you are running a 64-bit version of the Windows operating system, the executable file is in the x86 "Program Files" directory.
  2. Copy the executable file that you located in step 1 to the destination computer, and then run the executable file.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information, visit the following Microsoft Web sites:

APPLIES TO
  • Microsoft Visual Studio Team System 2008 Team Suite
  • Microsoft Visual Studio 2008 Standard Edition
  • Microsoft Visual Studio 2008 Professional Edition
  • Microsoft Visual Studio 2008 Academic Edition
  • Microsoft Visual Studio 2005 Team Suite
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Express Edition
  • Microsoft Visual Studio .NET 2003 Service Pack 1
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
Keywords: 
kbdevsicnvrtkb kbprb KB948619