Visual Studio 2022 crashes immediately after startup with no error message. How can I resolve this issue?

張 德揚 0 Reputation points
2024-04-08T09:41:35.0066667+00:00

I downloaded Visual Studio 2022 yesterday and it crashes a few seconds after it's opened. I received no error messages, but the crash log displays a lot of information (image 1), with most of it indicating that the problem is "CLR20r3" or "APP CRASH" (image 2). I attempted to start it in safe mode, but it still crashed after a few seconds, with a window popping up that says "Unexpected parameters" (image 3).

I've searched through many Microsoft Chinese QA sites, but I've been unable to find anything to resolve my problem. Is this an issue with my computer (Win11)? I look forward to any replies. Thank you.

1712528897708 1712568527620

S__40968200

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,627 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 48,581 Reputation points
    2024-04-08T15:37:46.4166667+00:00

    Looks like a bad installation or corrupt components. Have you repaired the VS installation by rerunning the installer and selecting repair? Also repair the installations of .NET Framework 4.8.

    If that doesn't help then run VS with logging enabled (devenv.exe /log <logpath>. Then look at the log. Also look in the Event Viewer logs to see what it is reporting there.

    If that still doesn't help then you might need to run the VS feedback tool to capture the error information so it can be sent to Microsoft.


  2. Anna Xiu-MSFT 25,801 Reputation points Microsoft Vendor
    2024-04-11T02:09:57.3166667+00:00

    Hi @張 德揚, 

    Welcome to Microsoft Q&A! 

    Please try the following workarounds:

    1. Update your VS2022 to the latest version 17.9.6.
    2. Disable any anti-virus software or security/privilege management software.
    3. Rename the folder: C:\Users\<username>\AppData\Local\Microsoft\VSCommon\OnlineLicensing\VisualStudio and re-launch the VS.
    4. Consider reinstalling the VS2022. (You can refer to the document to uninstall 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.