Fix - Visual Studio crash when running MSTest

Wednesday, April 08, 2009

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):


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!


  1. Too bad the link to the hotfix doesn't work anymore :(

  2. Damn! I hate it when they move stuff on the internet. It was hard enough finding the hotfix the first time.

  3. I found this after some searching:

    Rollup QFE for Visual Studio 2010 Test Tools

    I downloaded it and can now run unit tests again.

  4. 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.


Newer Older
Related Posts Plugin for WordPress, Blogger...