StreamJsonRpc.RemoteInvocationException while launching Visual Studio

Matthew Castrigno 5 Reputation points
2023-01-25T18:18:21.8933333+00:00

Fresh install of Visual Studio cannot be launched.

See error message in screen shot.
User's image

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

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 32,781 Reputation points Microsoft Vendor
    2023-01-27T08:52:43.31+00:00

    Hello @Matthew Castrigno ,

    Welcome to Microsoft Q&A forum.

    Please check if any of following methods works:

    1. Please open Developer Command Prompt for VS 2019 > run this command: devenv /ResetSettings(See this document: /ResetSettings for details).
    2. Search "Internet Options" in Windows search box, and open it > switch to Advanced tab > scroll down > check if Use TLS 1.2/Use TLS 1.3 option is checked.
    3. Repair VS from VS Installer > More > Repair.
    4. Update Windows OS and run CMD as administrator > run DISM.exe /Online /Cleanup-image /Restorehealth > after that run sfc /scannow. See this document: SFC tool for details.

    Feel free to contact us.

    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.


  2. JW 10 Reputation points
    2024-01-17T01:39:44.39+00:00

    This happened for me when I upgraded to version 17.8.4 of Visual Studio 2022. After poring through my logs, I found an error related to a bad binding of System.Numerics.Vector library; it was looking for version 4.1.3, but version 4.1.4 is installed on my machine. I tracked down a file called Microsoft.Developer.IdentityService.exe.config and added the following binding redirect; finally the JsonRPC error has gone away:

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
            <assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
            <bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
        </dependentAssembly>
    </assemblyBinding>
    
    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.