Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Visual Studio 2012 has stopped working" when solution is opened

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.

like image 228
user2827904 Avatar asked Sep 29 '13 09:09

user2827904


5 Answers

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
like image 146
Georgi Avatar answered Nov 11 '22 10:11

Georgi


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"

like image 31
Umer Tariq Avatar answered Oct 23 '22 16:10

Umer Tariq


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 enter image description here
NOTE: you can also save copy of current setting by Exporting it as a backup

like image 3
Anshul Nigam Avatar answered Nov 11 '22 12:11

Anshul Nigam


It is just two steps solution:

  1. Delete this folder: %AppData%..\Local\Microsoft\VisualStudio\11.0
  2. Run devenv/resetsettings from the folder where your visual studio is installed.
like image 3
Miguel Avatar answered Nov 11 '22 11:11

Miguel


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.

like image 1
mercedes Avatar answered Nov 11 '22 10:11

mercedes