Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

How to resolve Visual Studio 2005 IDE errors after uninstalling previous betas

How to resolve Visual Studio 2005 IDE errors after uninstalling previous betas

  • Comments 11

Sometimes, after uninstalling previous beta or Community Tech Preview (CTP) versions of Visual Studio 2005 (codename Whidbey) and then installing newer builds, the IDE may crash or display an error dialog stating “This application has failed to start because the application configuration is incorrect” after installing a newer beta or CTP.

This is normally caused by orphaned Visual C++ runtime assemblies left behind in the %windir%\WinSxS folder after uninstalling the previous build.

Steps to fix this issue

You can use the following steps to resolve this issue in most cases:

  1. Create a batch file that has the following commands and run it from a cmd prompt (you can also get a copy of this script in text file format here):
    cd %SYSTEMROOT%\WinSXS
    for /D %%i in (*vc80*) do rd %%i /s /q
    del manifests\*vc80* /q
    cd policies
    for /D %%i in (*vc80*) do del %%i\* /q
  2. Launch Visual Studio 2005 setup again from the entry in Add/Remove Programs or by rerunning setup.exe from the original installation location
  3. Choose the option to repair Visual Studio 2005
  4. After repair completes, re-launch the Visual Studio IDE

Additional information

In most cases, these errors will cause entries to be written to the System event log. You can run eventvwr.exe and look for error messages with event source "SideBySide".

Another common symptom of this problem is that the file %ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\devenv.exe.manifest contains a reference to one or more dependent assemblies for Visual C++ runtime files with incorrect version numbers.  The most common incorrect version I have seen is 8.0.41204.256.  Unfortunately, this problem cannot be fixed by simply editing devenv.exe.manifest.  Instead you will need to follow the 4 steps listed above to remove the orphaned files and repair VS 2005.

 

Page 1 of 1 (11 items)
Leave a Comment
  • Please add 6 and 3 and type the answer here:
  • Post