Fix – Visual Studio crash when running MSTest

Today during work I had a very annoying issue – whenever I’ve run the project unit test suite (using MSTest) Visual Studio disappeared. This is the first time I saw it crash like this without any error message or even an exception it just vanished.

I’ve gone through the regular routine of restarting windows and re started visual studio but it didn’t help, my helpful co-worker even suggested that I re-install visual studio 2008.

Due to the fact that installing VS2008 would have cost me a few hours of my time I’ve decided to investigate this issue.

A bit of searching showed the following error (using Event Viewer):

 image

Now I had something I can search for at the Internet. Simple search showed me that the issue also occours when using Azure & ASP.NET MVC and seemed to originate from a bug in visual studio when on of its add-ons uses .NET 3.5.

It looked like I needed to patch the .NET framework to fix the problem. Although it seemed a bit excessive (not to mention risky) I’ve downloaded the hotfix and installed it.

After (yet another) windows restart I opened visual studio and run the test suite and it worked!

4 thoughts on “Fix – Visual Studio crash when running MSTest

  1. My Boss still want's to use VS2005.
    So i can't get the hotfix any more ?

    Is this normal that MS removes hotfixes ?
    VSTest only crashes when i run a lot of tests, like 400.

    So, i'm running now the first 350 than the next and so on.
    But this doesn't look like automation at the moment.

    But if my Boss want's to use MS, it's his own fault of course.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s