开发者

Visual Studio has stopped working - on Win 7

开发者 https://www.devze.com 2022-12-30 10:47 出处:网络
I have Win 7 Enterprise. If i open any .cs file开发者_运维知识库 on VS 2008/2010 it gives a message \" Visual Studio has stopped working\" on a dialog box. There are two buttons \"Debug\" and \"close

I have Win 7 Enterprise. If i open any .cs file开发者_运维知识库 on VS 2008/2010 it gives a message " Visual Studio has stopped working" on a dialog box. There are two buttons "Debug" and "close program". Debug button starts devenv in debug mode with assembly code as i do not have the pdb file for the same.

There is another machine with same configuration where the VS 2008/2010 Ultimate works fine. Even reinstalling Win 7 did not solve the problem. Any idea why it is happening?


Try with some standard VS troubleshooting steps:

  • 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
  • Delete HKCU:\Software\Micosoft\VisualStudio\9.0 and then restart Visual Studio
  • Repair the Visual Studio installation through Add/Remove Programs


Recently I had the same problem, there is not much help on the Internet. So I thought this could be an easy fix. I re-install Visual Studio Several times but no luck. Finally, I uninstall .NET Framework along with Visual Studio, re-boot and re-install.

It worked fine !!

I thought it might help someone.


VS 2012 Stopped Working

  • I couldn't open a project or create a new one without it crashing
  • I was getting this error...

    System.ComponentModel.Composition.ImportCardinalityMismatchException was unhandled
      Message=No exports were found that match the constraint: 
        ContractName    Microsoft.VisualStudio.Language.Intellisense.IGlyphService
        RequiredTypeIdentity    Microsoft.VisualStudio.Language.Intellisense.IGlyphService
      InnerException:
    

However, as mentioned above this worked for me:

  • Launch Visual Studio with all add-ins disabled:

    devenv.exe /SafeMode
    
  • Reset All Settings: Tools -> Import / Export Settings -> Reset All Settings


Hey i had the same problem some time back but was solved when i installed this patch fix.

Check it out here -
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=26662.


For me ... one of extension I installed earlier is the culprit. That extension is some sort of code reflector. That tool manage to slow down my debugging when i step forward. And make visual studio 2012 constantly crashing. So my advice is be careful what tools and extensions you install... especially those that are not created by Microsoft themselves.


In my case the crash was caused by the parallel project builds. After went to Options -> Projects and Solutions -> Build and Run and set maximum number of parallel project builds to 1, the crash was gone.


  1. There could be multiple issues even in the code if the call to an async method an awaiter is missing.
  2. If everything seems to correct from code-wise then clean the solution and delete all the obj and bin fill from all project. Start building the solution again. This worked multiple times in my scenario.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号