I updated my visual studios to 16.4 and now I am unable to even open the IDE.
This is the error I'm receiving.
I've tried to repair and got the same error
I did a complete removal using Geek Uninstaller and reinstalled and i still get the same error.
Safemode produces same error message
Googleing the error messages solutions similar to this one
Ironicly, I first tried to report this to the visual studios team which ultimately leads me to this link. The problem is, I cant open visual studios.
I did manage to open a support request, but I don't expect a response for a few days, and I need to get my development setup up and running, so that's why I'm posting here too.
E: Forgot the log
E2: I lied, I was not able to open a support request. Appearently I have to pay?
E3: Safemode -> same error
12/05/2019 15:26:11 Eastern Standard Time : Error : Failed to start host 'desktopClr.x86$IdentityHost': Microsoft.ServiceHub.Utility.ServiceHubError: code: 'Hub host 'IdentityHost', PID: 9636 exited.'-532462766. (ErrorKind: HostExited) HResult='-2146233088'
12/05/2019 15:26:11 Eastern Standard Time : Error : Error starting service 'IdentityStorageService' requested by StorageServiceClient (pid:2456): Failed to start host 'desktopClr.x86$IdentityHost' (ErrorKind: Error HResult: 8013153B)
12/05/2019 15:26:11 Eastern Standard Time : Error : Microsoft.ServiceHub.Utility.ServiceHubError: Failed to start host 'desktopClr.x86$IdentityHost' (ErrorKind: Error HResult: 8013153B) HResult='-2146233088'
at Microsoft.ServiceHub.Controller.LocationService.<StartServiceAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<GetHostedServiceLocationAsync>d__71.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.ServiceHub.Controller.LocationService.<LocateAsync>d__39.MoveNext()
===InnerException===
System.OperationCanceledException: The operation was canceled. HResult='-2146233029'
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.HostInfo.<GetEndPointAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<StartServiceAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
12/05/2019 15:26:13 Eastern Standard Time : Error : Error starting service 'IdentityStorageService' requested by StorageServiceClient (pid:2456): Failed to start host 'desktopClr.x86$IdentityHost' (ErrorKind: Error HResult: 8013153B)
12/05/2019 15:26:13 Eastern Standard Time : Error : Failed to start host 'desktopClr.x86$IdentityHost': Microsoft.ServiceHub.Utility.ServiceHubError: code: 'Hub host 'IdentityHost', PID: 5076 exited.'-532462766. (ErrorKind: HostExited) HResult='-2146233088'
12/05/2019 15:26:13 Eastern Standard Time : Error : Microsoft.ServiceHub.Utility.ServiceHubError: Failed to start host 'desktopClr.x86$IdentityHost' (ErrorKind: Error HResult: 8013153B) HResult='-2146233088'
at Microsoft.ServiceHub.Controller.LocationService.<StartServiceAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<GetHostedServiceLocationAsync>d__71.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.ServiceHub.Controller.LocationService.<LocateAsync>d__39.MoveNext()
===InnerException===
System.OperationCanceledException: The operation was canceled. HResult='-2146233029'
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.HostInfo.<GetEndPointAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<StartServiceAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
12/05/2019 15:26:13 Eastern Standard Time : Error : Error starting service 'VsixServiceDiscovery' requested by VsixServiceDiscovery-extensionManager (pid:10144): Failed to start host 'desktopClr.x86$VSDetouredHost' (ErrorKind: Error HResult: 8013153B)
12/05/2019 15:26:13 Eastern Standard Time : Error : Microsoft.ServiceHub.Utility.ServiceHubError: Failed to start host 'desktopClr.x86$VSDetouredHost' (ErrorKind: Error HResult: 8013153B) HResult='-2146233088'
at Microsoft.ServiceHub.Controller.LocationService.<StartServiceAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<GetHostedServiceLocationAsync>d__71.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.ServiceHub.Controller.LocationService.<LocateAsync>d__39.MoveNext()
===InnerException===
System.OperationCanceledException: The operation was canceled. HResult='-2146233029'
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.HostInfo.<GetEndPointAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<StartServiceAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
12/05/2019 15:26:13 Eastern Standard Time : Error : StreamJsonRpc.RemoteInvocationException: Failed to start host 'desktopClr.x86$VSDetouredHost' (ErrorKind: Error HResult: 8013153B) HResult='-2146233088'
at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__96`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Framework.RemoteServiceBroker.<GetPipeAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Client.HubClient.<GetPipeAsync>d__33.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Client.HubClient.<RequestServiceAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.DiscoveryServiceProxy.<GetDiscoveryServiceProxyAsync>d__7.MoveNext()
12/05/2019 15:26:13 Eastern Standard Time : Error : Error starting service 'extensionManager' requested by ExtensionManagerServiceProxy (pid:2456): Cannot find service module info file 'extensionManager.servicehub.service.json' in 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\ServiceHub\Services' (ErrorKind: ServiceModuleInfoNotFound)
12/05/2019 15:26:13 Eastern Standard Time : Error : Microsoft.ServiceHub.Utility.ServiceHubError: Cannot find service module info file 'extensionManager.servicehub.service.json' in 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\ServiceHub\Services' (ErrorKind: ServiceModuleInfoNotFound) HResult='-2146233088'
at Microsoft.ServiceHub.Controller.ServiceDiscovery.<GetServiceModuleInfoAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<GetHostedServiceLocationAsync>d__71.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.ServiceHub.Controller.LocationService.<LocateAsync>d__39.MoveNext()
12/05/2019 15:26:14 Eastern Standard Time : Error : Error starting service 'IdentityStorageService' requested by StorageServiceClient (pid:2456): Failed to start host 'desktopClr.x86$IdentityHost' (ErrorKind: Error HResult: 8013153B)
12/05/2019 15:26:14 Eastern Standard Time : Error : Failed to start host 'desktopClr.x86$IdentityHost': Microsoft.ServiceHub.Utility.ServiceHubError: code: 'Hub host 'IdentityHost', PID: 12996 exited.'-532462766. (ErrorKind: HostExited) HResult='-2146233088'
12/05/2019 15:26:14 Eastern Standard Time : Error : Microsoft.ServiceHub.Utility.ServiceHubError: Failed to start host 'desktopClr.x86$IdentityHost' (ErrorKind: Error HResult: 8013153B) HResult='-2146233088'
at Microsoft.ServiceHub.Controller.LocationService.<StartServiceAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<GetHostedServiceLocationAsync>d__71.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.ServiceHub.Controller.LocationService.<LocateAsync>d__39.MoveNext()
===InnerException===
System.OperationCanceledException: The operation was canceled. HResult='-2146233029'
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.HostInfo.<GetEndPointAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<StartServiceAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
12/05/2019 15:26:15 Eastern Standard Time : Error : Error starting service 'IdentityStorageService' requested by StorageServiceClient (pid:2456): Failed to start host 'desktopClr.x86$IdentityHost' (ErrorKind: Error HResult: 8013153B)
12/05/2019 15:26:15 Eastern Standard Time : Error : Microsoft.ServiceHub.Utility.ServiceHubError: Failed to start host 'desktopClr.x86$IdentityHost' (ErrorKind: Error HResult: 8013153B) HResult='-2146233088'
at Microsoft.ServiceHub.Controller.LocationService.<StartServiceAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<GetHostedServiceLocationAsync>d__71.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.ServiceHub.Controller.LocationService.<LocateAsync>d__39.MoveNext()
===InnerException===
System.OperationCanceledException: The operation was canceled. HResult='-2146233029'
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.HostInfo.<GetEndPointAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ServiceHub.Controller.LocationService.<StartServiceAsync>d__54.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
I believe Hans' comment is referring to your anti-malware potentially blocking or delaying something it shouldn't during VS startup, rather than you getting malware from updating VS.
I'm currently working through this issue with our IT dept, since we don't have the ability to configure or disable these features on our own. Before this, our blocker was preventing part of the update/repair process. After resolving that, it persisted with this new error.
If you do have the ability to disable your malware checker/blocker and try the process again, it could be a telling troubleshooting method.
I'll update if/when this is resolved for me.
I had this exact problem. I believe caused by using system restore to restore back to before VS 16.4.1 upgrade in order to fix a hardware problem attributed to a Windows Update. Hardware problem was fixed by editing the registry. With VS I tried repair twice without success. Finally uninstall and re-install using Visual Studio Installer has resolved the problem.
These Steps work for me.
Step 1: User left click on "Start (button)"
enter image description here
Step 2:Type the "Visual Studio Installer" enter image description here
Step Final:
Goto the more-> repair.
its works for me.
thanks.
Related
I'm using the Visual Studio 2022 (17.4.4). This is a .NET 6 C# project.
When running code analysis on my project, I immediately get the message "Code analysis completed for 'projectname'". No code analysis warnings or errors are displayed.
When I then leave Visual Studio open for a couple of minutes (without doing anything), after 2-3 minutes an error bar appear:
"Feature 'Diagnostic analyzer runner' is currently unavailable due to an internal error. [Show Stack Trace]"
When I click on "Show Stack Trace", I get a stack trace (attached at the bottom of this post).
How can I fix this or investigate further?
StreamJsonRpc.RemoteInvocationException: An item with the same key has already been added.
at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__143`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Remote.BrokeredServiceConnection`1.<TryInvokeAsync>d__18`1.MoveNext()
RPC server exception:
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Microsoft.CodeAnalysis.RemoveUnnecessarySuppressions.AbstractRemoveUnnecessaryInlineSuppressionsDiagnosticAnalyzer.<ProcessSuppressMessageAttributesAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.RemoveUnnecessarySuppressions.AbstractRemoveUnnecessaryInlineSuppressionsDiagnosticAnalyzer.<AnalyzeAsync>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Diagnostics.Extensions.<>c__DisplayClass9_0.<<GetPragmaSuppressionAnalyzerDiagnosticsAsync>g__AnalyzeDocumentAsync|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Diagnostics.Extensions.<GetPragmaSuppressionAnalyzerDiagnosticsAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Diagnostics.Extensions.<GetAnalysisResultAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Remote.Diagnostics.DiagnosticComputer.<AnalyzeAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Remote.Diagnostics.DiagnosticComputer.<GetDiagnosticsAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Remote.RemoteDiagnosticAnalyzerService.<>c__DisplayClass4_0.<<CalculateDiagnosticsAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.<>c__DisplayClass7_0`1.<<RunWithSolutionAsync>g__ProcessSolutionAsync|1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.<RunWithSolutionAsync>d__7`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.<RunWithSolutionAsync>d__7`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Remote.BrokeredServiceBase.<RunWithSolutionAsync>d__11`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Remote.RemoteDiagnosticAnalyzerService.<CalculateDiagnosticsAsync>d__4.MoveNext()
When you encounter such a message, it's a bug. So, there is likely no fix you can do on your end. Such bugs should be reported to Microsoft.
This bug was already reported https://github.com/dotnet/roslyn/issues/50496
You'll have to wait for a fix.
System.InvalidOperationException:
Failed to set version to docker-desktop: exit code: -1
stdout: The attempted operation is not supported for the type of object referenced.
stderr:
at Docker.ApiServices.WSL2.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) in C:\workspaces\PR-17851\src\github.com\docker\pinata\win\src\Docker.ApiServices\WSL2\WslCommand.cs:line 160
at Docker.Engines.WSL2.WSL2Provisioning.<ProvisionAsync>d__8.MoveNext() in C:\workspaces\PR-17851\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\WSL2Provisioning.cs:line 81
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.Engines.WSL2.LinuxWSL2Engine.<DoStartAsync>d__28.MoveNext() in C:\workspaces\PR-17851\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\LinuxWSL2Engine.cs:line 177
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.ApiServices.StateMachines.TaskExtensions.<WrapAsyncInCancellationException>d__0.MoveNext() in C:\workspaces\PR-17851\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\TaskExtensions.cs:line 29
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__5.MoveNext() in C:\workspaces\PR-17851\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 67
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__5.MoveNext() in C:\workspaces\PR-17851\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 92
Virtualization is enabled.
I tried to uninstall, restart desktop, and reinstall. But the problem doesn't solve. How can I fix it?
I'm using Visual Studio 2019 enterprise and it gives me an error every time I open it.
I didn't know what the problem was, so I left it until now the program sometimes closes automatically, this is the program log file, please tell me what is the problem and how can I fix this? thanks!
=====================
2/18/2021 12:05:22 PM
Recoverable
System.AggregateException: One or more errors occurred. ---> System.Runtime.InteropServices.COMException: Element not found. (Exception from HRESULT: 0x80070490)
at Microsoft.VisualStudio.Setup.Configuration.ISetupConfiguration.GetInstanceForCurrentProcess()
at Microsoft.VisualStudio.ProjectSystem.VS.DotNetCoreProjectCompatibilityDetector.<IsPrereleaseAsync>d__44.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ProjectSystem.VS.DotNetCoreProjectCompatibilityDetector.<IsPreviewSDKInUseAsync>d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ProjectSystem.VS.DotNetCoreProjectCompatibilityDetector.<CheckCompatibilityAsync>d__47.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ProjectSystem.VS.DotNetCoreProjectCompatibilityDetector.<<InitializeAsync>b__40_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ProjectSystem.ProjectMultiThreadedService.<>c__DisplayClass31_0.<<Fork>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.ProjectSystem.CommonProjectSystemTools.Rethrow(Exception ex)
at Microsoft.VisualStudio.ProjectSystem.ProjectErrorReporting.<>c__DisplayClass6_0.<SubmitErrorReport>b__0()
at Microsoft.VisualStudio.ProjectSystem.ExceptionFilter.<>c__DisplayClass2_0.<Guard>g__action|0()
at GuardMethodClass.GuardMethod(Func`1 , Func`2 , Func`2 )
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Runtime.InteropServices.COMException (0x80070490): Element not found. (Exception from HRESULT: 0x80070490)
at Microsoft.VisualStudio.Setup.Configuration.ISetupConfiguration.GetInstanceForCurrentProcess()
at Microsoft.VisualStudio.ProjectSystem.VS.DotNetCoreProjectCompatibilityDetector.<IsPrereleaseAsync>d__44.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ProjectSystem.VS.DotNetCoreProjectCompatibilityDetector.<IsPreviewSDKInUseAsync>d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ProjectSystem.VS.DotNetCoreProjectCompatibilityDetector.<CheckCompatibilityAsync>d__47.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ProjectSystem.VS.DotNetCoreProjectCompatibilityDetector.<<InitializeAsync>b__40_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.ProjectSystem.ProjectMultiThreadedService.<>c__DisplayClass31_0.<<Fork>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.ProjectSystem.CommonProjectSystemTools.Rethrow(Exception ex)
at Microsoft.VisualStudio.ProjectSystem.ProjectErrorReporting.<>c__DisplayClass6_0.<SubmitErrorReport>b__0()
at Microsoft.VisualStudio.ProjectSystem.ExceptionFilter.<>c__DisplayClass2_0.<Guard>g__action|0()
at GuardMethodClass.GuardMethod(Func`1 , Func`2 , Func`2 )<---
===================
Try start it in safe mode, sometimes it fixes things and is able to lauch in normal afterwards:
Edit the shortcut you might have (depending your your version, community, professional or enterprise, use appropriate subfolder..):
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe" /safemode
VS19 community version is giving error.Checking Test Output Pane gives this error:
at Microsoft.VisualStudio.TestWindow.Controller.OperationBroker.<>c__DisplayClass17_0.<<OnSolutionOpened>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.TestWindow.Extensibility.ILoggerExtensions.<CallWithCatchAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
So I an trying to add a remote connection to my Ubuntu 18.04 server for remote debugging in VS. Both when I add the connection and if I try to refresh remote headers I get the following error:
Checking the log I get the following more informative error:
liblinux.IO.RsyncException: Could not create daemon configuration file on remote device
How do I solve this exactly? Is there some way for me to set up this file manually if I can't get it to work automatically?
Here is the full error in the log if needed:
liblinux.IO.RsyncException: Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting. ---> liblinux.IO.RsyncException: Could not create daemon configuration file on remote device ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'ShellStream'.
at liblinux.Ssh.ShellStream.Write(String text)
at liblinux.Ssh.ShellStream.WriteLine(String line)
at liblinux.Shell.StreamingShell.WriteLine(String line)
at liblinux.IO.RemoteRsyncDaemon.Start()
--- End of inner exception stack trace ---
at liblinux.IO.RemoteRsyncDaemon.Start()
at liblinux.IO.Rsync.StartRemoteServer(RemoteRsyncDaemon daemon)
--- End of inner exception stack trace ---
at liblinux.IO.Rsync.StartRemoteServer(RemoteRsyncDaemon daemon)
at liblinux.IO.Rsync.PrepareForDirectorySync(Int32 sessionID, String localPath, String remotePath, RsyncDirection direction, RemoteRsyncDaemon daemon, RsyncVerbosity verbosity, Boolean recursive, List`1 includes, List`1 excludes, Boolean& sourcePathExists, String customOptions)
at liblinux.IO.Rsync.<SyncDirectoryAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at liblinux.Services.RsyncRemoteCompilerIOImpl.<DownloadDirectoriesAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at liblinux.Services.RemoteCompiler.<DownloadSysrootAsync>d__152.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at liblinux.Services.RemoteCompiler.<CreateSysrootAsync>d__186.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at liblinux.Services.RemoteCompiler.<CreateLocalSysrootAsync>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.VisualStudio.Linux.Package.Dialogs.HeaderUpdateDialog.<DownloadUpdateAsync>d__18.MoveNext()