Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio has stopped working - on Win 7

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?

like image 792
Amit Avatar asked May 18 '10 10:05

Amit


People also ask

Can Windows 7 run Visual Studio 2022?

Visual Studio 2022 is supported only on 64-bit editions of Windows 10 version 1909 and higher and Windows Server 2016 and higher. We don't recommend using Visual Studio on earlier versions of Windows and Windows Server.

How do I fix Visual Studio installer has stopped working?

Please remove the folder: C:\Program Files (x86)\Microsoft Visual Studio\Installer. Then, re-download the bootstrapper file from the following Microsoft Site and run it as administrator.

Why is Visual Studio not working?

Close the Visual Studio Installer. Delete the Visual Studio Installer installation directory. Typically, the directory is C:\Program Files (x86)\Microsoft Visual Studio\Installer . Run the Visual Studio bootstrapper.

Can't open VS code on Windows 7?

Can I run VS Code on Windows 7? Microsoft ended support for Windows 7 in January, 2020 and no longer provides security updates. VS Code desktop versions starting with 1.71 (August 2022) will no longer run on Windows 7 and you will need to upgrade to a newer Windows version to use later versions of VS Code.


3 Answers

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
like image 170
Dirk Vollmar Avatar answered Sep 19 '22 07:09

Dirk Vollmar


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.

like image 34
AbuTaareq Avatar answered Sep 19 '22 07:09

AbuTaareq


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

like image 32
user4325712 Avatar answered Sep 22 '22 07:09

user4325712