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

前端 未结 15 1083

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 stop

相关标签:
15条回答
  • 2020-12-16 17:16

    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.

    0 讨论(0)
  • 2020-12-16 17:19

    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.

    0 讨论(0)
  • 2020-12-16 17:24

    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
    
    0 讨论(0)
  • 2020-12-16 17:27

    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.

    0 讨论(0)
  • 2020-12-16 17:29

    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

    0 讨论(0)
  • 2020-12-16 17:31

    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.

    0 讨论(0)
提交回复
热议问题