“Visual Studio 2012 has stopped working” when solution is opened

最后都变了- 提交于 2019-12-18 04:03:16

问题


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.


回答1:


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



回答2:


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


回答3:


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.



回答4:


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.




回答5:


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"




回答6:


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




回答7:


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.




回答8:


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.




回答9:


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




回答10:


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.




回答11:


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.




回答12:


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.




回答13:


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:
  5. Select Change Folder and Search Options.
  6. On the Folder Options dialog box select the View Tab.
  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.




回答14:


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.




回答15:


Deleting the OBJ folder is what resolved this for me.



来源:https://stackoverflow.com/questions/19076487/visual-studio-2012-has-stopped-working-when-solution-is-opened

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!