Visual Studio Community 2022 keeps closing on startup no matter what

Yves Henri 0 Reputation points
2024-03-20T15:46:28.1+00:00

Hi,

I've been using the Visual Studio IDE's for quite a long time, but this has never happened to me in like 10+ years.

I'm currently using Visual Studio Community 2022 and all of sudden it started closing itself when I launch it, sometimes right after the splash screen, sometimes after the project loads. I've tried:

  1. Disabling Anti-Viruses
  2. Launching with /SafeMode, both on CMD and Developer Command Prompt for VS 2022
  3. Launching with /log, both on CMD and Developer Command Prompt for VS 2022 (no ActivityLogXXXXX.xml is generated)
  4. Updating Visual Studio Community 2022 (currently at version 17.9.4 - no updates available at this time)
  5. Repairing Visual Studio Community 2022 (it launches and works successfully only a SINGLE time after repairing, then starts crashing again)
  6. Updating OS (currently latest Windows 11 - no updates available at this time)
  7. Cleaning broken registries with the CCleaner tool

Are there any hopes left?

Probably important info: I've updated my BIOS.

Thanks

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

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
    2024-03-21T06:54:16.1166667+00:00

    Hello @Yves Henri,

    I may suggest try following two methods:

    1. Try to rename this folder C:\Users\<username>\AppData\Local\Microsoft\VSCommon\OnlineLicensing\VisualStudio and restart VS, you may need to sign in VS again. If possible, please also try to reset VS settings(run devenv /ResetSettings in Developer Command Prompt for VS).
    2. Not sure if some extensions you installed weren’t compatible with VS 2022(for example, I remember that, previously, an earlier version of Microsoft Visual Studio Installer Projects 2022 extension may cause this issue). If you still remember the name of the extensions, please try to search and download a new .vsix file of this extension from Visual Studio Marketplace, rename the file extension from .vsix to .zip, open this .zip folder and find the extension.vsixmanifest file. Open it with Notepad, find and get the Id <Identity Id="XXXXXXX">. Open CMD and use C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VSIXInstaller.exe to uninstall that extension. The command is like "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VSIXInstaller.exe" /u:Id. After that please restart VS and check again.

    Actually I also doubt if something blocks VS, but I notice that "VS launches and works successfully a single time after repairing". Repairing is for VS and VS worked, though a single time, looks like the cause is more related to VS. Perhaps a reinstall(VS) will work.

    Kind 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.