无法加载文件或程序集 'Microsoft.Windows.Simulator.Client、'Microsoft.VisualStudio.CppSvc.Internal StreamJsonRpc.RemoteInvocationException
Could not load file or assembly 'Microsoft.Windows.Simulator.Client, 'Microsoft.VisualStudio.CppSvc.Internal StreamJsonRpc.RemoteInvocationException
我的 OS 是 Windows 10,使用 Visual Studio 2019、XCode 9.4 开发,并开发 Xamarin Forms 应用程序。
当尝试通过 Visual Studio 2019 连接 Mac book Pro 13 (10.13.6) 时,我得到了连接到 MacBook 的奇怪状态(检查'chain' 在屏幕图标下),但实际上我不是,因为它不会出现在配对设备中。
当 运行 应用程序时,我收到一个错误 A remote error occurred in the connected Mac
当我单击消息时,我会看到一个日志,在其中我看到了很多步骤和四个错误。
8 PkgDefManagement initialized VisualStudio 2021/03/03 14:54:24.665
9 RootFolder
C:\Program Files (x86)\Microsoft Visual Studio19\Professional\ VisualStudio 2021/03/03 >14:54:24.665
10 ShellFolder
C:\Program Files (x86)\Microsoft Visual Studio19\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 studio19\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 Studio19\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__13
1.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
.....
然后在最底部
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\s\src\Core\Xamarin.Messaging.Windows\ErrorsManager.cs:line
24at Clide.ErrorsManager.<>c__DisplayClass7_0.b__0(Object sender,
EventArgs e) in
E:\A_work9\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)
到此结束。
这是怎么回事?我该如何进一步调试?
答案是获得 Mac Book Air,它支持最新的 macOS (High Spur) 和最新的 XCode (12) 以及 Visual Studio 和 Mac 图书成功连接。
因此,一种可能的解决方案是升级您的硬件。
我的 OS 是 Windows 10,使用 Visual Studio 2019、XCode 9.4 开发,并开发 Xamarin Forms 应用程序。
当尝试通过 Visual Studio 2019 连接 Mac book Pro 13 (10.13.6) 时,我得到了连接到 MacBook 的奇怪状态(检查'chain' 在屏幕图标下),但实际上我不是,因为它不会出现在配对设备中。
当 运行 应用程序时,我收到一个错误 A remote error occurred in the connected Mac
当我单击消息时,我会看到一个日志,在其中我看到了很多步骤和四个错误。
8 PkgDefManagement initialized VisualStudio 2021/03/03 14:54:24.665
9 RootFolder C:\Program Files (x86)\Microsoft Visual Studio19\Professional\ VisualStudio 2021/03/03 >14:54:24.665
10 ShellFolder C:\Program Files (x86)\Microsoft Visual Studio19\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 studio19\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 Studio19\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__139
1.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__13
1.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
.....
然后在最底部
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\s\src\Core\Xamarin.Messaging.Windows\ErrorsManager.cs:line 24at Clide.ErrorsManager.<>c__DisplayClass7_0.b__0(Object sender, EventArgs e) in E:\A_work9\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)
到此结束。
这是怎么回事?我该如何进一步调试?
答案是获得 Mac Book Air,它支持最新的 macOS (High Spur) 和最新的 XCode (12) 以及 Visual Studio 和 Mac 图书成功连接。
因此,一种可能的解决方案是升级您的硬件。