Could not load file or assembly 'Microsoft.Windows.Simulator.Client, 'Microsoft.VisualStudio.CppSvc.Internal StreamJsonRpc.RemoteInvocationException - xcode

My OS is Windows 10, developing with Visual Studio 2019, XCode 9.4, and developing Xamarin Forms app.
When trying to connect Mac book Pro 13 (10.13.6), via Visual Studio 2019, I get this weird state where I am connected to MacBook (check the 'chain' under screen icon), but really I am not, as it does not appear in paired devices.
When running the app I get a single error that says A remote error occurred in the connected Mac
When I click on the message I get to a log and in it I see a lot of steps and four errors.
8 PkgDefManagement initialized VisualStudio 2021/03/03 14:54:24.665
9 RootFolder
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\ VisualStudio 2021/03/03 >14:54:24.665
10 ShellFolder
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\
624 ERROR Still unable to load MEF component DLL: Could not load file
or assembly 'Microsoft.Windows.Simulator.Client, Version=16.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.
c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\commonextensions\platform\diagnosticshub\Microsoft.DiagnosticsHub.VisualStudio.Package.dll
Microsoft.VisualStudio.ComponentModelHost.VsShellComponentModelHost
2021/03/03 14:54:41.666
625 ERROR Still unable to load MEF component DLL: Could not load file
or assembly 'Microsoft.VisualStudio.CppSvc.Internal, Version=16.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\CodeAnalysis\Microsoft.VisualStudio.CodeAnalysis.VCPlugin.dll
Microsoft.VisualStudio.ComponentModelHost.VsShellComponentModelHost
2021/03/03 14:54:41.673
781 ERROR StreamJsonRpc.RemoteInvocationException: Error enumerating
over credential store.at
StreamJsonRpc.JsonRpc.d__1391.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.Developer.IdentityService.PipeManager.<InvokeRpcFuncAsync>d__131.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.Developer.IdentityService.AccountProvider.GithubAccountProviderClient.d__40.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.Developer.IdentityService.AccountProvider.GithubAccountProviderClient.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.Shell.Connected.UserInformation.UserInformationPackage.d__11.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.Shell.VsTaskLibraryHelper.<>c__DisplayClass32_0.<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.Shell.VsTaskLibraryHelper.<>c__DisplayClass35_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception
exceptionObject) RPC server exception:
Microsoft.Developer.IdentityService.GithubCredentialStorage.Interop.InteropException:
Error enumerating over credential store.at
Microsoft.Developer.IdentityService.GithubCredentialStorage.Interop.Windows.WindowsCredentialStore.Enumerate(String
filter)at
Microsoft.Developer.IdentityService.GithubCredentialStorage.GitHubCredentialStore.SearchAllCredentials()at
Microsoft.Developer.IdentityService.GithubCredentialStorage.GithubCredentialStoreService.b__10_0()at
System.Threading.Tasks.Task`1.InnerInvoke()at
System.Threading.Tasks.Task.Execute() vs/identity/githubsso
2021/03/03 14:55:12.650
....
and then at the very bottom
914 Did not find item to promote MruList 2021/03/03 15:26:46.494
915 Entering MruItemsStoreServiceDecorator.AddMRUItem. Item category:
335041a8-b61a-4e9f-b0fe-d42dfa193855, lpszItem:
%UserProfile%\source\repos\StruebyPhotoApp\StruebyPhotoApp.Api\StruebyPhotoApp.Api.csproj|{00000000-0000-0000-0000-000000000000}|0,0|False
CodeContainerTracing 2021/03/03 15:26:46.494
916 ERROR
System.NullReferenceException: Object reference not set to an instance
of an object.at
Xamarin.Messaging.Windows.ErrorsManager.<>c__DisplayClass3_0.b__0(IErrorItem
item) in
C:\A\1\36\s\src\Core\Xamarin.Messaging.Windows\ErrorsManager.cs:line
24at Clide.ErrorsManager.<>c__DisplayClass7_0.b__0(Object sender,
EventArgs e) in
E:\A_work\349\s\src\Clide.Core.Windows\Errors\ErrorsManager.cs:line
55at Microsoft.VisualStudio.Shell.Task.OnNavigate(EventArgs e)at
Microsoft.VisualStudio.Shell.Task.Microsoft.VisualStudio.Shell.Interop.IVsTaskItem.NavigateTo()at
Microsoft.VisualStudio.ErrorListPkg.Shims.ErrorListPackageEventProcessor.PreprocessNavigate(ITableEntryHandle
entryHandle, TableEntryNavigateEventArgs e)at
Microsoft.VisualStudio.Shell.TableControl.Implementation.TableControlEventManager.<>c__DisplayClass40_0.b__2(ITableControlEventProcessor
p, ITableEntryHandle entry)at
Microsoft.VisualStudio.Shell.TableControl.Implementation.TableControlEventManager.<>c__DisplayClass60_1`1.b__0()at
Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object
errorSource, Action call) --- End of stack trace from previous
location where exception was thrown --- at
Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception
exceptionObject)
and this is where it ends.
What is going on? How do I debug this further?

The answer was to get a Mac Book Air that had support for the latest macOS (High Spur) and latest XCode (12) and the Visual Studio and Mac book managed to connect.
So one potential solution would be to upgrade your hardware.

Related

Why does Microsoft visual studio 2019 close automatically?

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

VS 2019 Community version 16.4.0 gives error for Test Explorer

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)

Unable to start visual studios 2019 (16.4)

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.

Cannot load Q# language extension

I installed the quantum development kit from the microsoft site:
https://www.microsoft.com/en-us/quantum/development-kit
But when I try to open one of the projects or create a Q# I get the message:
There was an error activating the remote language server, Q# Language Extension. For more details, please run devenv /log and examine ....\ActivityLog.xml file.
I ran it and found:
ERROR
System.SystemException: The trust relationship between the primary domain and the trusted domain failed. at System.Security.Principal.NTAccount.TranslateToSids(IdentityReferenceCollection sourceAccounts, Boolean& someFailed) at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean& someFailed) at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess) at System.Security.Principal.NTAccount.Translate(Type targetType) at System.Security.AccessControl.CommonObjectSecurity.ModifyAccess(AccessControlModification modification, AccessRule rule, Boolean& modified) at System.Security.AccessControl.CommonObjectSecurity.AddAccessRule(AccessRule rule) at System.IO.Pipes.PipeSecurity.AddAccessRule(PipeAccessRule rule) at Microsoft.Quantum.QsLanguageExtensionVS.QsLanguageClient.d__24.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.ValidateEnd(Task task) at Microsoft.VisualStudio.LanguageServer.Client.RemoteLanguageServiceBroker.RemoteLanguageClientInstance.d__49.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.Threading.ThreadingTools.d__12.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.LanguageServer.Client.RemoteLanguageServiceBroker.RemoteLanguageClientInstance.d__47.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Q# Language Extension
So I have no intellisense and the *.qs files are not as Q# recognized.
Visual Studio 2017 15.9
Windows 10 1809
Any idea about this?
We have posted a new version of the Visual Studio extension (0.3.1811.1501) which we believe should fix the problem. Do you mind updating the extension and giving it a try?

Cannot load any MSBuild project in Visual Studio 2013

I've just started learning MSBuild and tried to load the below simple test project to Visual Studio 2013 (Update 5), but I'm getting the error 'The project system has encountered an error' - 'The given key was not present in the dictionary.'
Note I can successfully build the project with MSBuild from command line, just want to see it in VS project tree as part of a solution among the other csproj/vcxproj/etc. projects.
I've tried several ways, changing bits and pieces in msbuildproj file, etc. - no success, always getting the same error. Any idea what I'm doing wrong? Are MSBuild projects not supposed to be added to VS solution?
<!-- mytest.msbuildproj -->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
<Target Name="Build">
<Message Text="Building my target" />
</Target>
</Project>
The project system has encountered an error
VsProjectFault_8c79b7c1-086a-47e9-be8c-46300a431de3.failure.txt:
=====================
01/03/2016 17:10:25
Recoverable
System.AggregateException: One or more errors occurred. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at Microsoft.Collections.Immutable.ImmutableDictionary2.get_Item(TKey key)
at Microsoft.VisualStudio.ProjectSystem.Designers.PhysicalProjectTreeProvider.GetProjectRootProperties(ConfiguredProjectExports configuredProjectExports)
at Microsoft.VisualStudio.ProjectSystem.Designers.PhysicalProjectTreeProvider.GenerateOriginalTree(ConfiguredProjectExports configuredProjectExports, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ProjectSystem.Designers.PhysicalProjectTreeProvider.<GenerateOriginalTreeAsync>d__35.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.ValidateEnd(Task task)
at Microsoft.VisualStudio.ProjectSystem.Utilities.Designers.ProjectTreeProviderBase.<>c__DisplayClass9.<<Initialize>b__5>d__b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.ProjectSystem.Utilities.CommonProjectSystemTools.Rethrow(Exception ex)
at Microsoft.VisualStudio.ProjectSystem.ProjectErrorReporting.<>c__DisplayClass5.<SubmitErrorReport>b__3()
at Microsoft.VisualStudio.ProjectSystem.ExceptionFilter.<>c__DisplayClass2.<Guard>b__0()
at GuardMethodClass.GuardMethod(Func1 , Func2 , Func2 )
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at Microsoft.Collections.Immutable.ImmutableDictionary2.get_Item(TKey key)
at Microsoft.VisualStudio.ProjectSystem.Designers.PhysicalProjectTreeProvider.GetProjectRootProperties(ConfiguredProjectExports configuredProjectExports)
at Microsoft.VisualStudio.ProjectSystem.Designers.PhysicalProjectTreeProvider.GenerateOriginalTree(ConfiguredProjectExports configuredProjectExports, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ProjectSystem.Designers.PhysicalProjectTreeProvider.<GenerateOriginalTreeAsync>d__35.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.ValidateEnd(Task task)
at Microsoft.VisualStudio.ProjectSystem.Utilities.Designers.ProjectTreeProviderBase.<>c__DisplayClass9.<<Initialize>b__5>d__b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.ProjectSystem.Utilities.CommonProjectSystemTools.Rethrow(Exception ex)
at Microsoft.VisualStudio.ProjectSystem.ProjectErrorReporting.<>c__DisplayClass5.<SubmitErrorReport>b__3()
at Microsoft.VisualStudio.ProjectSystem.ExceptionFilter.<>c__DisplayClass2.<Guard>b__0()
at GuardMethodClass.GuardMethod(Func1 , Func2 , Func2 )<---
===================
Not all msbuild files are created equal. Sure you can craft one from scratch, and run it on the command line. But that doesn't mean visual studio will like that file.
Visual studio needs a msbuild file with a certain schema, and the above file doesn't fit the bill.

Resources