Visual Studio 2022 crashing

Mohamed Shawky 0 Reputation points
2024-04-17T11:26:27.3633333+00:00

I had visual studio 2022 installed and was working fine, suddenly it crashed and refused to open again and keeps crashing.

I also tried uninstalling it and reinstalling it multiple times but no change.

any advice to solve this issue?

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
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
966 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
    2024-04-18T04:58:06.0966667+00:00

    Hello @Mohamed Shawky,

    Welcome to Microsoft Q&A forum.

    Please kindly try following methods:

    1. Check if this folder(C:\Users\<username>\AppData\Local\Microsoft\VSCommon\OnlineLicensing\VisualStudio) exists, if it exists, try to rename the VisualStudio folder and restart VS. If it doesn’t exist, try to rename this folder => C:\Users\<username>\AppData\Local\Microsoft\VSCommon\17.0 and relaunch VS(you may need to log in VS again).
    2. Try to run Visual Studio in Safe Mode(search Developer Command Prompt for Visual Studio 2022 in Windows OS search box, launch it and run devenv /SafeMode command).
    3. Try to launch Developer Command Prompt for VS 2022, run devenv /log, reproduce this issue, and check if a file called ActivityLog.xml will be generated under %AppData%\Microsoft\VisualStudio\17.0_<UniqueID>. If it exists, try to open it and check if there’s any recorded detailed error message.

    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.