Visual Studio 2022 features unnavailable due to internal error
Asked Answered
P

3

7

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>)

Here is also a screenshot:enter image description here

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.

Perrone answered 18/1, 2022 at 14:38 Comment(5)
Try turning off the "Intellicode" suggestions.Siloam
Still the same issue.Perrone
Im also getting this issue, constantly...did you get a resolution @AchoVasilev?Oversubtle
@RichardDeeming that's not really a solution. What's the point of using Visual Studio if one needs to turn off any connected features?Afraid
@Afraid That's why I posted a comment rather than an answer. Unfortunately, this isn't something anyone outside of Microsoft can fix, so there's no way anyone can post an actual solution that doesn't involve turning off the affected features.Siloam
A
1

I had this issue last time and I am able to turn it off by uncheck "Enable IntelliTrace" Sceenshot

Aisne answered 17/11, 2022 at 4:42 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Leapt
A
0

I was facing this issue with VS 2022(.NET 6) project I closed and reopen Visual Studio and it's worked for me

Anesthetist answered 11/12, 2022 at 18:52 Comment(2)
@phuzi how is this a "thanks" answer?Bostwick
Huh. It happened to me twice, but the third time I opened my VS2022 project, the problem went away.Anetteaneurin
A
0

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.

Ambivert answered 27/5, 2024 at 10:2 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.