Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VisualStudio 2010 Freeze after each build

I Recently I installed VS2010 on my desktop. Everything was fine until I started noticing that after each build my computer freezes up(for almost 2-5 minutes). I removed all the extensions and tried still no luck.

Any suggestions ??

like image 915
Ajay Avatar asked Jul 20 '10 17:07

Ajay


People also ask

Why does Visual Studio keeps freezing?

If you experience crashes of Visual Studio, typically when working with a very large solution, your IDE might be out of virtual memory. Typical indicators of the problem include a "one or more errors occurred" message, "the process appears to be deadlocked" message, and OutOfMemory exception in a crash dump.


2 Answers

Actually during each build, I could see ExpansionsXML.xml file is being processed again and again.

I found a Microsoft support article (support.microsoft.com/kb/956549) that has resolved my issue.

What I did:

  • Delete the file C:\Users\<username>\AppData\Local\Microsoft\VisualStudio\10.0\1033\ExpansionsXML.xml
  • Go to the registry and delete the following key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Languages\CodeExpansions
  • Restart the IDE

I will update more if I see same issue

like image 116
Ajay Avatar answered Sep 29 '22 18:09

Ajay


Install procmon, and see what's happening. Do you have anti-virus running? Does the problem go away if you disable it?

like image 36
chris Avatar answered Sep 29 '22 18:09

chris