Share via

Could not start Visual Studio due to an error. StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete.

Jaswanth Arla --CNTR 0 Reputation points
2026-02-09T16:15:01.86+00:00

Getting the following error while launching the newly installed visual studio 2022
User's image

Developer technologies | Visual Studio | Setup
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Jaswanth Arla --CNTR 0 Reputation points
    2026-02-12T10:46:23.1733333+00:00

    While trUser's image

    ying to repair getting this error, but I don't see any restrictions in my settings. Also, no issue with visual studio 2026, but as I need 2022 version.


  2. Leon Tran (WICLOUD CORPORATION) 1,405 Reputation points Microsoft External Staff Moderator
    2026-02-10T03:29:15.28+00:00

    Hi @Jaswanth Arla --CNTR ,

    Thank you for sharing the screenshot. Based on the error message shown, Visual Studio is failing to start due to the following exception: 

    StreamJsonRpc.ConnectionLostException:  The JSON‑RPC connection with the remote party was lost before the request could complete. 

    This error indicates that one of those background services crashed or failed to initialize during startup, causing Visual Studio to lose communication with it and shut down. 

    Here are a few troubleshooting steps you can try to resolve this issue. I’ve listed them in order, starting with the most commonly recommended solutions.

    1. Delete the Identity Service cache 

    Corrupted identity data is the most common cause of this error. 

    1. Close Visual Studio completely. 
    2. Open File Explorer and type %LOCALAPPDATA% 
    3. Delete the folder named IdentityService
    4. Restart Visual Studio and sign in again. 

    2. Start Visual Studio in Safe Mode 

    This helps determine whether an extension is causing the failure. 

    1. Open Command Prompt
    2. Run: devenv /safemode

    If Visual Studio opens, disable or uninstall recently added extensions, then restart normally.     

    3. Repair Visual Studio 

    If the issue persists, repairing the installation can restore corrupted components. 

    1. Open Visual Studio Installer
    2. Select MoreRepair

    Restart the machine after the repair completes. 

    Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well. 

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.