Visualstudio-docs: JSON-RPC connection with remote party was lost before the equest could complete

Created on 4 Apr 2020  Â·  12Comments  Â·  Source: MicrosoftDocs/visualstudio-docs

Looks like there is another ou-of-proc process that is not in your list.

I get this stack trace on the err:

StreamJsonRpc.ConnectionLostException : The JSON-RPC connection with the remote party was lost before the request could complete.
at async StreamJsonRpc.JsonRpc.InvokeCoreAsync(<Unknown Parameters>)
at async StreamJsonRpc.JsonRpc.InvokeCoreAsyncTResult
at async Microsoft.CodeAnalysis.Remote.RemoteEndPoint.InvokeAsync(<Unknown Parameters>)
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 doc-bug visual-studio-windowprod vs-ide-generatech

Most helpful comment

I'm having the same issue with Version 16.7.0 Preview 4.0 and .Net Core 5.0 Preview 8.0.
The error occurs whilst editing the code and breaks intellisense once the error is thrown, so I'm forced to restart.

Activity Monitor Log_xml.zip
vslogs.zip

All 12 comments

I also got the same issue when working with a .NET Core project where a migration of Entity Framework Core has a very large data to be seeded to a database. I think that causes one of the Visual Studio's out-of-proc processes to crash in the background, as it tries to compile the whole code base I guess.

I get this error when my system is idle (or I'm in the editor editing code). I've not had it while running (debugging) code.

I recently installed VS 2019 and it was working well for a week or two, and then suddenly I am constantly getting this specific message (JSON-RPC). Often VS will freeze up and then automatically restart, making it practically unusable.

I get the same problem, repeatedly. Any solution?

I'm getting exactly the same issue when I'm editing razor pages in a Blazor server solution. Happens multiple times a day. Result is that it keeps trying to run task in the background that never finish and slow down VS. I'm running the latest VS update:

Microsoft Visual Studio Community 2019 Preview
Version 16.7.0 Preview 2.0

StreamJsonRpc.ConnectionLostException : The JSON-RPC connection with the remote party was lost before the request could complete.
at async StreamJsonRpc.JsonRpc.InvokeCoreAsync()
at async StreamJsonRpc.JsonRpc.InvokeCoreAsyncTResult
at async Microsoft.CodeAnalysis.Remote.RemoteEndPoint.InvokeAsyncT
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

I just got this issue while coding on Net Framework. It has been two days since I have updated Visual Studio:
Microsoft Visual Studio Enterprise 2019
Version 16.6.2

Microsoft .NET Framework
Version 4.8.03752

Error:

StreamJsonRpc.ConnectionLostException : The JSON-RPC connection with the remote party was lost before the request could complete.
   at async StreamJsonRpc.JsonRpc.InvokeCoreAsync(<Unknown Parameters>)
   at async StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.Remote.RemoteEndPoint.InvokeAsync[T](<Unknown Parameters>)
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

I get this issue repeatedly, it seems to be regardless of framework which for me is usually .net 4.7.1 or one of the .net core LTS versions

Microsoft Visual Studio Enterprise 2019
Version 16.6.2

It was certainly doing it in earlier versions of VS recently.

I was facing same issue recently with VS2019. Followed below step solved problem for me.

  1. In Account Settings page, under All Accounts section remove each added account. Sign out any personalized account as well.
  2. Restart the VS.
  3. Sign-in under All Accounts section.
  4. Here select Use Another Account option even if your account is prelisted. Complete sign-in process.
  5. You can sign-in to personalized account as well now.
  6. Done. You can retry the action which was throwing you error earlier.

I'm having the same issue with Version 16.7.0 Preview 4.0 and .Net Core 5.0 Preview 8.0.
The error occurs whilst editing the code and breaks intellisense once the error is thrown, so I'm forced to restart.

Activity Monitor Log_xml.zip
vslogs.zip

Took Nikhilpp26's advice and it worked. Thank you.
Been having all sorts of issues with VS Community 2019 version 16.8.0 preview 1.0

I've got the same issue. It happens when I try to sign into VS. I did try the steps mentioned by Nikhilpp26, that didn't seem to help the issue. A screen shot of what VS is showing is below. I'm running VS16.7.3.

image

Thanks everyone for your posts. As an FYI, this product feedback also appears in the Developer Community, where it was triaged and redirected to another locale: https://github.com/dotnet/roslyn/issues/43855. From what's posted there, it looks like a fix is planned for an upcoming release.

Meanwhile, we'll add a Note to the "_Visual Studio unrecoverable process error_" page that will help direct folks to the right place to report product feedback (i.e., via the Report a Problem tool), going forward. So, we'll close this issue now, with our thanks for helping us improve the documentation.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ogglas picture Ogglas  Â·  3Comments

rlundy picture rlundy  Â·  3Comments

DaanV2 picture DaanV2  Â·  4Comments

jnpwly picture jnpwly  Â·  3Comments

nitinjs picture nitinjs  Â·  3Comments