VS 2008 crashes on startup when ‘Code Analysis Tools’ feature

October 31, 2008 – 3:00 am

VS 2008 crashes on startup when ‘Code Analysis Tools’ feature is not installed

Now that Visual Studio 2008 RTM is out I have started getting reports of Visual Studio crashing on startup when TestDriven.Net is installed. I was pretty dismayed as TestDriven.Net has included Orcas support since January of this year and this support has been pretty well tested. I certainly wasn’t expecting to see any fatal crashes!

needs_to_close 

It turns out that this crash only happens when the user has opted not to install the ‘Code Analysis Tools’ feature. This is quite common when someone is doing a minimal install of Visual Studio with just the language feature they need.

The issue appears to be related to the Visual Studio command bars. If you simply query for a command bar that doesn’t exist, Visual Studio will quit with an error (rather than throwing the expected ArgumentException)!

code_analysis_tools_snip

I’m happy to say there are now two possible fixes for the issue:

  1. If you go into the Visual Studio 2008 Team Suite setup and enable the ‘Code Analysis Tools’ feature, you should find the crash goes away.
  2. I’ve just released TestDriven.Net 2.10, which includes a workaround for this issue. Please read the release notes and download it from here. If you’re using Visual Studio 2008 I strongly encourage you to install this version.

Thanks to Aaron Jensen, Chad Myers and Dru Sellers for reporting the problem.

SQL Server Analysis Services - Manipulating Data Source Views
In this article, Nidal demonstrates the steps required to manipulate Data Source Views using SQL Server Analysis Services. After a short introduction, he examines the steps in detail with the help of relevant screenshots and code listing.
Nidal Arabi

CodeSnip: Find Control in Nested Master Pages
In this article, Abdulla examines how to find a control from Content Page inside two Nested Master Pages using Visual Studio 2008. He initially demonstrates the problem and then provides the required solution with relevant code samples.
Abdulla Hussein AbdelHaq

The Media Center Show #179 ? Mike Garcen live!
Listen Here (mp3)This week I am talking to Mike Garcen from MissingRemote.com, we recorded the interview live and we talk about TV Tuner cards, CableCARD, Bluray and a whole range of topics. I also have all the Windows 7 news coming out of Microsoft?s PDC including the first look at the new version

Restlet 1.1: A Lightweight REST Framework
Since the launch of Restlet 1.0, 2007, we have been working hard to prepare this new version. To protect your investment in existing code, we have maintained the initial API design, extending it where necessary and always ensuring a direct, if not transparent, migration path. Here is a selection of the most exciting new features.

You must be logged in to post a comment.