Reputation: 167
When I open Visual Studio everything is fine, but when I open any solution, it comes up with an error:
Visual Studio 2012 for Windows Desktop has stopped working.
I'm beginning to get really frustrated now, can anyone help? I don't want to lose all of my work.
I formatted my computer yesterday, reinstalled all my software and used Visual Studio all day, it was fine. When I shut down the computer, it updated to the newest versions of windows update, then completed the update this morning when I turned it on, now I can't open any of my solutions again.
Upvotes: 12
Views: 44425
Reputation: 124
I have encountered this issue (Visual Studio 2012 for Windows Desktop has stopped working.) today after installing the github desktop version. Deleting the files from this location "(%AppData%..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache)" didnt help. I reset all environment settings using visual studio. Go to Tools -> Import and Export settings and choose "Reset all settings" option to reset the environment settings. I see new settings file generated in the path "C:\Users[username]\Documents\Visual Studio [version]\Settings" and then i was able to open all the existing projects in my local machine.
Upvotes: 0
Reputation: 157
The answer by @Georgi is correct. This answer is just to guide user to access the User AppData and Roaming folders in Windows 10. Do the following steps:
In order to keep your computer safe, remember to restore back the defaults.
Upvotes: 0
Reputation: 87
If all above answers doesn't solved the problem. Try to disable the internet connection and then open the VS; if it opens without the error, It possibly means that the one causing the problem is the Instance ID / User account. Logout your microsoft ID (still without internet) and then plug the internet again and try to open the VS.
This worked for me.
Upvotes: 0
Reputation: 37
I had same problem and i also tried all above solutions but unable to fix it, even i re-install and repair Visual Studio. After 5-6 hours finally I got solution. Run Window + R and type below command. It will fix your problem. Thanks
"devenv.exe /ResetUserData"
Upvotes: 1
Reputation: 171
I had same problem and I tried all above solutions but none one them worked for me. When I checked Tools->Extensions and Updates->Online, I saw a few updates available. I chose one of them and after restart, Visual Studio 2013 back to normal.
Upvotes: 0
Reputation: 37
Had this problem when trying to Debug an ASP.NET site.
Turns out my "Application Pool" (e.g. ASP.NET v4.0) had more than one "Maximum Worker Processes" and that was causing the problem.
Upvotes: 0
Reputation: 5028
I came across this type of error last week working on VS2013, the solution for me is to start the Visual Studio installation and select 'Repair'.
Upvotes: 0
Reputation: 1714
It is just two steps solution:
Upvotes: 3
Reputation: 189
First I tried Reset All Settings: Tools -> Import / Export Settings -> Reset All Settings. I did not resolved the issue.
Deleting the entire deleted the entire folder, "%AppData%..\Local\Microsoft\VisualStudio\12.0" worked for me.
Thanks everyone for the help.
Upvotes: 1
Reputation: 1
You only need to go into below location
(%AppData%..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache)
and delete the file "Microsoft.VisualStudio.Default.cache".
It should work.
Upvotes: 0
Reputation: 1
I faced same problem after I upgraded from windows 8 to windows 8.1 . But I deleted the folder C:\Users\C S RAI\AppData\Local\Microsoft\VisualStudio\11.0\ and the problem is solved.
Upvotes: 0
Reputation: 1628
I tried the above things but it did not worked for me.But resetting environmnet setting did the job.
Go to Tools->Import & Export Settings -> Choose Reset all settings
NOTE: you can also save copy of current setting by Exporting it as a backup
Upvotes: 3
Reputation: 1
Clean the solution Delete / rename all files in your solution created by VS, i.e. all .ncb, .suo, .user files Launch Visual Studio with all add-ins disabled: devenv.exe /SafeMode Reset All Settings: Tools -> Import / Export Settings -> Reset All Settings
Upvotes: 0
Reputation: 674
I had exactly the same problem, additionally I could not create new projects because of "no exports were found that match the constraint contract name" error. I made a small research and the answer from this question helped me to resolve both issues. Now I can create and open my previous projects. What I did is to delete this folder:
%AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
Upvotes: 24