Welcome to MSDN Blogs Sign in | Join | Help

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

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.

 

Published Tuesday, May 10, 2005 8:33 PM by astebner
Filed under:

Comments

Monday, May 16, 2005 7:04 PM by Rob Caron's Blog

# New Team System Stuff - 2005-05-16

Visual Studio Team System

The big news around Team System at the moment is the announcement on Rick...
Thursday, June 02, 2005 9:11 AM by Tony Cheetham

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

Your an absolute Genius. I was banging my head against a wall for days trying to fix this. Thanks!!
Saturday, July 23, 2005 10:22 PM by Glenn Russell

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

I followed your instructions (even copy and pasted the script). I had to boot up in Safe Mode in order to delete all the folders. I still cannot launch my VB IDE without the same error. Is there a way I can copy the report sent to MS so I can attach it to an email to you?
Tuesday, September 13, 2005 4:32 PM by seth

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

this has been the most frustrating install experience in my life. didnt have a previous beta installed and the VS2005 B2 install seems to install OK but i cannot open the app without it throwing this error.
Tuesday, September 13, 2005 6:24 PM by seth

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

splendid. i got it to open the ide without throwing an error but now when i try to open a project i get marshalled object errors.

most betas break AFTER install and not DURING.
Wednesday, September 14, 2005 1:39 AM by astebner

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

Hi Seth - I'm very sorry for the problems you've run into while installing VS 2005 beta 2. The issue I documented at http://blogs.msdn.com/astebner/archive/2005/05/10/416223.aspx might help resolve some of the crashes you are seeing. If this doesn't help, can you please contact me directly at aaronste (at) microsoft (dot) com and send me the exact text of the error messages you are encountering?

Sunday, December 18, 2005 8:48 AM by Tomislav Rakic

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

Hey man, i done something stupid. I reinstalled my win (omg) with my vs8 on it. Now it displays that nasty IDE error. Can it be fixed?

# Eddie On Everything » Working around the 1935 error with HRESULT 0×80131532 when installing Visual Studio

# Aaron Stebner's WebLog : Visual Studio 2005 and .NET Framework 2.0 Setup Troubleshooting Guide

Saturday, November 18, 2006 12:41 PM by Aaron Stebner's WebLog

# Definitive list of workarounds for Package Load Failure errors in Visual Studio 2005

Ever since the final version of Visual Studio 2005 was released, I have been hearing from customers who

Friday, February 16, 2007 9:35 PM by Aaron Stebner's WebLog

# Visual Studio 2005 and .NET Framework 2.0 Setup Troubleshooting Guide

Where to get Visual Studio 2005 and the .NET Framework 2.0 Where to download the .NET Framework 2.0 redistributable

Anonymous comments are disabled
 
Page view tracker