user2827904
user2827904

Reputation: 167

"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.

Upvotes: 12

Views: 44425

Answers (15)

clamchoda
clamchoda

Reputation: 4981

Deleting the OBJ folder is what resolved this for me.

Upvotes: 0

user1551655
user1551655

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

jwen
jwen

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:

  1. Go to File Explorer.
  2. Select the C drive.
  3. On the File Explorer Ribbon, switch to the View Tab.
  4. Expand the Option button, by clicking on the black small triangle below the button. As shown in the image: enter image description here
  5. Select Change Folder and Search Options.
  6. On the Folder Options dialog box select the View Tab. enter image description here
  7. Amend as shown above.
  8. Click the Apply and then the OK buttons.
  9. Now go the folder C:\Users\YOUUSERRNAME\AppData and you will see them enabled.

In order to keep your computer safe, remember to restore back the defaults.

Credits to Hafid Selougha.

Upvotes: 0

princevezt
princevezt

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

Umer Tariq
Umer Tariq

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

sinan
sinan

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

Randy Rowell
Randy Rowell

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

Joseph Wu
Joseph Wu

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

Miguel
Miguel

Reputation: 1714

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.

Upvotes: 3

mercedes
mercedes

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

Zeeshan Ahmed
Zeeshan Ahmed

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

Chandrashekhar Rai
Chandrashekhar Rai

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

Anshul Nigam
Anshul Nigam

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

Upvotes: 3

user3269593
user3269593

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

Georgi
Georgi

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

Related Questions