Visual studio closes immediately after opening it in Admin mode error: Description: Controller terminated before accepting connections. Exit code: -532462766

Bharat Devarakonda 5 Reputation points
2024-02-16T11:49:26.8366667+00:00

When I try to open Visual Studio in Admin an error is displayed, and VS closes immediately.Screenshot 2024-02-16 171343

Developer technologies | Visual Studio | Other
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-02-19T03:07:40.24+00:00

    Hi @Bharat Devarakonda

    Welcome to Microsoft Q&A! 

    Could you successfully launch your Visual Studio 2022 in Safe Mode (run devenv /SafeMode in Developer Command Prompt for VS 2022)? 

    If your VS2022 works fine in safe mode, it may be caused by the installed extensions. You can disable or uninstall the installed extensions under Extensions > Manage Extensions > Installed.  

    Besides, you can close all running VS instances and rename (or delete) every ComponentModelCache folders under this path: C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_XXXXX. Then, re-run VS as administrator.  

    You can update your VS2022 to the latest version with Visual Studio Installer and launch vs again. 

    If you have any anti-virus software or security/privilege management software, please temporarily disable them and try again. 

    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.  

    0 comments No comments

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.