Reputation: 494
From the last about half an hour I have been getting these errors:
StreamJsonRpc.ConnectionLostException : The JSON-RPC connection with the remote party was lost before the request could complete. ---> System.OperationCanceledException : The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at async StreamJsonRpc.MessageHandlerBase.WriteAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async StreamJsonRpc.JsonRpc.TransmitAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async StreamJsonRpc.JsonRpc.InvokeCoreAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
--- End of inner exception stack trace ---
at async StreamJsonRpc.JsonRpc.InvokeCoreAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.Remote.BrokeredServiceConnection`1.TryInvokeAsync[TService,TResult](<Unknown Parameters>)
Currently I am using VS Community 2022 17.0.5. These errors display when I am writing code or when it is building. There are no errors in building the application and it runs. But any type of IntelliSense fails, also the code doesn't automatically align. I have tried reloading and re-installing but these errors persist.
Upvotes: 7
Views: 3669
Reputation: 27
I suggest first try cleaning VS cache(rename ComponentModelCache folder(s) in C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_xxxxxxxx folder), and then reset VS(run devenv /ResetSettings command in Developer Command Prompt For Visual Studio 2022) => run Visual Studio as administrator.
Sometimes, updating Windows OS or uninstalling Newtonsoft.Json assembly file(run gacutil -u Newtonsoft.Json in command prompt) works.
Upvotes: 0
Reputation: 11
I was facing this issue with VS 2022(.NET 6) project I closed and reopen Visual Studio and it's worked for me
Upvotes: 0
Reputation: 19
I had this issue last time and I am able to turn it off by uncheck "Enable IntelliTrace" Sceenshot
Upvotes: 1