Visual Studio 2019 crashes every time I open it

Falanga, Rod, DOH 245 Reputation points
2024-09-24T21:05:25.6133333+00:00

Every time I open Visual Studio 2019 Enterprise Edition, it crashes. I just looked at the event log and see this:

Log Name: Application Source: .NET Runtime Date: 9/24/2024 2:58:16 PM Event ID: 1026 Task Category: None Level: Error Keywords: Classic User: N/A Computer: MYPC.doh.nmdoh.nmsg Description: Application: devenv.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(System.Collections.Generic.IEnumerable1<Microsoft.Build.BackEnd.ScheduleResponse>) at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32, Microsoft.Build.BackEnd.BuildRequestBlocker) at Microsoft.Build.Execution.BuildManager+<>c__DisplayClass96_0.<IssueBuildRequestForBuildSubmission>g__IssueBuildSubmissionToSchedulerImpl|1(Microsoft.Build.Execution.BuildSubmission, Boolean) at Microsoft.Build.Execution.BuildManager+<>c__DisplayClass96_0.<IssueBuildRequestForBuildSubmission>b__0() at Microsoft.Build.Execution.BuildManager.ProcessWorkQueue(System.Action) at Microsoft.Build.Execution.BuildManager.<BeginBuild>b__60_2(System.Action) at System.Threading.Tasks.Dataflow.ActionBlock1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessMessage(System.Action1<System.__Canon>, System.Collections.Generic.KeyValuePair2<System.__Canon,Int64>) at System.Threading.Tasks.Dataflow.ActionBlock1+<>c__DisplayClass6_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<.ctor>b__0(System.Collections.Generic.KeyValuePair2<System.__Canon,Int64>) at System.Threading.Tasks.Dataflow.Internal.TargetCore1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessMessagesLoopCore() at System.Threading.Tasks.Dataflow.Internal.TargetCore1+<>c[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<ProcessAsyncIfNecessary_Slow>b__34_0(System.Object) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef) at System.Threading.Tasks.Task.ExecuteEntry(Boolean) at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name=".NET Runtime" /> <EventID Qualifiers="0">1026</EventID> <Version>0</Version> <Level>2</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2024-09-24T20:58:16.2837284Z" /> <EventRecordID>98041</EventRecordID> <Correlation /> <Execution ProcessID="28316" ThreadID="0" /> <Channel>Application</Channel> <Computer>DOH3ITHOMW002.doh.nmdoh.nmsg</Computer> <Security /> </System> <EventData> <Data>Application: devenv.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(System.Collections.Generic.IEnumerable1&lt;Microsoft.Build.BackEnd.ScheduleResponse&gt;) at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32, Microsoft.Build.BackEnd.BuildRequestBlocker) at Microsoft.Build.Execution.BuildManager+&lt;&gt;c__DisplayClass96_0.&lt;IssueBuildRequestForBuildSubmission&gt;g__IssueBuildSubmissionToSchedulerImpl|1(Microsoft.Build.Execution.BuildSubmission, Boolean) at Microsoft.Build.Execution.BuildManager+&lt;&gt;c__DisplayClass96_0.&lt;IssueBuildRequestForBuildSubmission&gt;b__0() at Microsoft.Build.Execution.BuildManager.ProcessWorkQueue(System.Action) at Microsoft.Build.Execution.BuildManager.&lt;BeginBuild&gt;b__60_2(System.Action) at System.Threading.Tasks.Dataflow.ActionBlock1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessMessage(System.Action1&lt;System.__Canon&gt;, System.Collections.Generic.KeyValuePair2<System.__Canon,Int64>) at System.Threading.Tasks.Dataflow.ActionBlock1+&lt;&gt;c__DisplayClass6_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;.ctor&gt;b__0(System.Collections.Generic.KeyValuePair2<System.__Canon,Int64>) at System.Threading.Tasks.Dataflow.Internal.TargetCore1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessMessagesLoopCore() at System.Threading.Tasks.Dataflow.Internal.TargetCore1+<>c[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<ProcessAsyncIfNecessary_Slow>b__34_0(System.Object) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef) at System.Threading.Tasks.Task.ExecuteEntry(Boolean) at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() </Data> </EventData> </Event>

What's going on? Why is VS 2019 suddenly become unreliable?

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-09-25T03:27:28.9066667+00:00

    Hi @Falanga, Rod, DOH,

    Welcome to Microsoft Q&A! 

    Please try the following workarounds:

    1. Update your VS2019 to the latest with Visual Studio Installer.
    2. Repair the VS2019 in Visual Studio Installer > More > Repair.
    3. Repair your .NET Framework by using the tool: https://learn.microsoft.com/en-us/dotnet/framework/install/repair.
    4. Run “sfc /scannow” at the command prompt to repair missing or corrupted system files.
    5. If you have any anti-virus software or permission management software, please temporarily disable it.

     

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  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.

    1 person found this answer helpful.

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.