Visual Studio 2022 crash after startup

Abdulrahman Lardy 5 Reputation points
2023-01-19T20:29:36.4333333+00:00

I was working fine on VS 2022 17.4, but one day I tried to open to program and after the splash screen it closes immediately.

I tried reparing and reinstalling the program, but nothing works.

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

3 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
    2023-01-20T03:45:34.1866667+00:00

    Hi @Abdulrahman Lardy,

    Welcome to Microsoft Q&A forum.

    Please also run devenv.exe /log command in Developer Command Prompt for VS 2022, and check the ActivityLog.xml file which is generated in %AppData%\Microsoft\VisualStudio\17.0_<UniqueID>. If there’s any error information recorded, please share the detailed error message with us to check.

    Besides, here are some suggestions that you can try to troubleshoot first:

    1. Rename this folder C:\Users\<username>\AppData\Local\Microsoft\VSCommon\OnlineLicensing\VisualStudio, and restart VS.
    2. Reboot your machine and restart VS(confirm that no other processes block you from running VS).
    3. Update Windows OS and make sure that there are no Windows Update errors.

    BTW, was anything changed on your machine before this issue appeared?

    Best Regards,

    Tianyu


    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.

    5 people found this answer helpful.

  2. David Lowndes 4,711 Reputation points
    2023-01-19T20:34:43.1966667+00:00

    Have you tried starting Visual Studio in safe mode?

    If that still fails, have a look in the Event Viewer to see what the record of the problem may be.

    0 comments No comments

  3. Kevin Cheng 0 Reputation points
    2023-10-12T09:20:50.23+00:00

    Hi @Tianyu Sun-MSFT ,

    I also got same issue. please help to check

    windows : 11

    visual stutio : 2022

    Below is the log file i use your suggestion in above message.

    ActivityLog_20231012.xml