Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 crashes and restarts every time I run a test

I have a unit test project in my solution and every time I run a test, my vs2012 crashes and restarts itself.

Basically the test finishes and then a popup shows up saying Microsoft Visual Studio has stopped working, then another box comes up saying MS VS is restarting.

Has anyone run into this problem also and does anyone know how to fix this? I really appreciate any help on this.

Edit: I have tried to uninstall plugins as well as reset my vs environment, no help. Whenever I open the Test Explorer up, this happens too.

Edit: I thought it was Web Essential plugin, because it worked after I uninstalled it and stopped working when I installed it back. Now, the problem came back, I don't know how but it came back without the plugin installed.

like image 338
Ray Avatar asked Oct 05 '22 02:10

Ray


2 Answers

Try running Visual Studio as administrator

like image 150
tjaals Avatar answered Oct 10 '22 23:10

tjaals


Try delete everything in this registry location and restart VS:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\ExtensionManager\EnabledExtensions
like image 38
Edi Wang Avatar answered Oct 10 '22 23:10

Edi Wang