Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

Tuesday, February 10, 2015

MVC: Cannot create/shadow copy 'System.Web.Mvc' when that file already exists

This is a temporary build error. Following steps would help you resolve this error:


  1. Wait for some time(30 sec to 1 min).
  2. Right click Solution and clean solution.
  3. Rebuild Solution.
  4. Open some other url in browser bar.
  5. Try reloading same url again.
Hope this resolves your error. However if this still does not work for you, then go to temp location (asp.net temp files in program files) and delete all the project related temporary files(dlls). And rebuild solution. You might need to close visual studio as few files could be in use.


This should resolve the error. If you face such errors very frequently, I would recommend you to clear your machine. Delete all the temp files. empty recycle bin, delete unnecessary files from system drive(c drive), clean desktop.

And you still face such errors(and other like visual studio is busy performing some internal operation), in worst case you might need to fix your windows.(if you are unable to do this, get your machine formatted if possible).

Wednesday, January 28, 2015

Microsoft Visual Studio is busy waiting for an internal operation to complete

Hi,

With higher versions of Microsoft Visual Studio, this error is much familiar than ever. There could be many reasons behind this. Few common fixes are below:


  1. Remove website cache from following location:
    1. C:\Users\user_name\AppData\Local\Microsoft\WebsiteCache
  2. Restart IIS:
    1. Start -> RUN -> iisreset 
  3. Go to Tools -> Options and browse all the options and disable all unnecessary options.
  4. Clear cache.
  5. Remove temp files.
  6. Ensure there is enough space in C (System) drive.
However I will include one more scenario here. In a special case, I was facing this issue with one of my solutions only(not with all .net solutions). And after so much Google, when I find nothing about it, I opened Task Manager and started digging further. After killing my Devenv.exe more than 10 times, I decided to debug all my projects individually. And I opened BigSolution.sln file in notepad and started removing projects one by one(following kind of lines):

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectX", "ProjectX\ProjectX.csproj", "{4C3D1267-EAF4-46E9-92E2-49469713509B}"
EndProject

And then I realized that the issue was with one of my recently added project and I removed that project and this fixed my issue.

Thanks.