Can't open visual studio 2019

Michael 1 Reputation point
2021-06-29T23:39:10.183+00:00

Hi, my visual studio 2019 suddenly stops working. It just stops without throwing any errors. I tried to delete and reinstall few times but it didn't solve the issue. I found some errors in windows eventViewer.

Application: devenv.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.InteropServices.SEHException at Microsoft.VisualStudio.Services.GelFactory.FactoryServiceBase`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(Microsoft.VisualStudio.Shell.IAsyncServiceProvider, ICodeMarkers<System.__Canon,System.__Canon>) at Microsoft.VisualStudio.Services.GelFactory.GelFactoryPackage.<InitializeAsync>b__1_1(System.ComponentModel.Design.IServiceContainer, System.Type) at Microsoft.VisualStudio.Shell.Package.GetService(System.Type) at Microsoft.VisualStudio.Shell.AsyncPackage.GetService(System.Type) at Microsoft.VisualStudio.Shell.Package.InternalQueryService(System.Guid ByRef, System.Guid ByRef, IntPtr ByRef) at Microsoft.VisualStudio.Shell.AsyncPackage.InternalQueryService(System.Guid ByRef, System.Guid ByRef, IntPtr ByRef) at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.OLE.Interop.IServiceProvider.QueryService(System.Guid ByRef, System.Guid ByRef, IntPtr ByRef) at Microsoft.VisualStudio.OLE.Interop.IServiceProvider.QueryService(System.Guid ByRef, System.Guid ByRef, IntPtr ByRef) at Microsoft.VisualStudio.Shell.ServiceProvider.QueryService(System.Guid, System.Type, Boolean, System.Object ByRef) at Microsoft.VisualStudio.Shell.ServiceProvider.QueryService(System.Type, Boolean, System.Object ByRef) at Microsoft.VisualStudio.Shell.ServiceProvider.GetService(System.Type, Boolean) at Microsoft.VisualStudio.Shell.Package.GetService(System.Type) at Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(System.Type) at Microsoft.VisualStudio.Services.SignIn.UIFactory.Register(System.IServiceProvider) at Microsoft.VisualStudio.Services.SignIn.SignInPackage.Initialize() at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(Microsoft.VisualStudio.OLE.Interop.IServiceProvider)

Faulting application name: devenv.exe, version: 16.10.31424.327, time stamp: 0x60d5155d Faulting module name: clr.dll, version: 4.8.4390.0, time stamp: 0x609c42a0 Exception code: 0xc0000006 Fault offset: 0x000bf200 Faulting process id: 0x1348 Faulting application start time: 0x01d76d3e5ce40769 Faulting application path: G:\Apps\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Report Id: ba77424c-2e53-40f5-80f7-2aaafbc28953 Faulting package full name: Faulting package-relative application ID:

Windows cannot access the file C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Coll4a4f96a7#\a55e2437e97c99ba5faffb48cf233a03\System.Collections.Immutable.ni.dll for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program Microsoft Visual Studio 2019 because of this error.

Program: Microsoft Visual Studio 2019 File: C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Coll4a4f96a7#\a55e2437e97c99ba5faffb48cf233a03\System.Collections.Immutable.ni.dll

The error value is listed in the Additional Data section. User Action

  1. Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.
  2. If the file still cannot be accessed and
  • It is on the network, your network administrator should verify that there is not a problem with the network and that the server can be contacted.
  • It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is fully inserted into the computer.
  1. Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
  2. If the problem persists, restore the file from a backup copy.
  3. Determine whether other files on the same disk can be opened. If not, the disk might be damaged. If it is a hard disk, contact your administrator or computer hardware vendor for further assistance.

Additional Data Error value: C0000242 Disk type: 3

Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2021-06-30T03:25:42.517+00:00

    Hi @Michael ,

    Welcome to Microsoft Q&A!

    Could you tell me how you encountered this situation? What’s your project type?

    Please use the command: devenv /safemode to run your Visual Studio in safe mode and check if the situation disappears.

    Meanwhile, you can check for your Windows Update and repair your .NET Framework by using the tool:
    https://learn.microsoft.com/en-us/dotnet/framework/install/repair

    Sincerely,
    Anna

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.