A few days ago I was working with Visual Studio and suddenly I was "under attack", a technical problem so persistent that I had to find an immediate solution.
What happened? Suddenly, the Assembly folder (AKA "GAC folder" located at C:\WINDOWS\assembly) appeared empty. In addition, I could not deploy or run any of my web parts.
I restarted my virtual machine, hoping that the assembly folder contents would miraculously reappear after rebooting. That did the trick but it turned out to be a very temporary solution. As I continued working this problem intensified, occurring and greater and greater frequency.
Eventually it happened at intervals of about 10 minutes and it became impossible to continue.
Searching for a more long-lasting solution I came across a forum where many other developers complained about the same problem.
The suggestion I found there was to disable the Indexing Service (located in Start -> Programs -> Administrative Tools -> Services).
I tried this and thankfully it worked! All I had to do is to stop the service in the “services” screen.
Thing is – this service has a knack for “magically” restarting itself every now and then, so if you want to make sure you've gotten rid of it for good – I suggest also changing its start-up type to “Disabled”.
Since I implemented these changes on my computer everything has returned to normal and I've been able to work in Visual Studio freely and easily.
Hope this helps,