Visual studio 2022 is not responding ,technically stops responding when i want to run the codes

56140202 20 Reputation points
2023-04-13T18:47:44.6733333+00:00

Hey guys . For the past week visual studio has been slow ,it takes forever to launch , it doesn't want to display forms (whenever i press the start run thing after coding it will just freeze after a while it will say visual is not responding maybe after an hour it will show an error message that says since visual studio is not responding I should close the application/restart it .When I restart visual studio nothing changes it will still be slow /not respond when I run the program .I tried uninstalling it and reinstalled it ,but nothing changed . May someone please help me solve this issue please .

Developer technologies | Visual Studio | Debugging
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | Visual Studio | Other
{count} votes

3 answers

Sort by: Most helpful
  1. Marc Roussel 25 Reputation points
    2025-02-25T02:05:18.6466667+00:00

    Ok at first, I had the dialog to Open Recent but it was always hanging there so I decided to start vs empty so it doesn't open this dialog

    Then I saw what was happening and why VS was hanging and had to kill it. Along with the empty solution pane, I saw Connecting to TFS which was never coming back from trying to connect so again had to kill VS. After 1 ou 2 tries, it finally connects and VS stops hanging.

    The culprit for me ? TFS connecting but never succeed. This must be fixed to avoid UI freezes and have a timeout so we can retry ourself if it doesn't connect.

    2 people found this answer helpful.
    0 comments No comments

  2. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2023-04-14T07:35:23.1733333+00:00

    Hello @56140202,

    Welcome to Microsoft Q&A forum.

    Please first try to clean VS cache(rename every folder called ComponentModelCache in C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX) and reset VS settings(run devenv /ResetSettings in Developer Command Prompt For Visual Studio 2022).

    Please also check if you have installed any extensions, if so, try to disable them temporarily or try to run VS in Safe Mode(run devenv /SafeMode in Developer Command Prompt For Visual Studio 2022). Please check if there’s any limit/antivirus which may block VS from building/displaying/running on your machine.

    Since there are many reasons for not responding, could you please collect and share us the ActivityLog.xml file for further check? To collect the log, please close VS => run devenv /log command in Developer Command Prompt For Visual Studio 2022 => reproduce the issue => go to %APPDATA%\Microsoft\VisualStudio\<Version>\ActivityLog.xml, share us the log file(avoid the privacy information) or share us the snippets of recorded error/warning message to check.

    If you changed any settings such as Registry, system environment variables, system files, windows files, VS files, and project configurations, please let us know.

    If this issue only appears on a Windows Forms project which is based on .NET/.NET Core, then please consider submitting a ticket on our Developer Community for further check, as support for .NET based Windows Forms projects(Designer) are still in improvement.

    Feel free to let us know the results.

    Sincerely,

    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.


  3. JT 0 Reputation points
    2025-05-14T01:34:20.65+00:00

    I delete the files in the following folder:

    AppData\Roaming\Microsoft\VisualStudio

    In startup window, it still tries to read something. But the freezing seems gone for now. Hope it works for longer time.

    VS team doesn't know how to do basic stuff.


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.