如何解决无法加载文件或程序集 'Microsoft.Windows.Simulator.Client, 'Microsoft.VisualStudio.CppSvc.Internal StreamJsonRpc.RemoteInvocationException
我的操作系统是 Windows 10,使用 Visual Studio 2019、XCode 9.4 进行开发,并开发 Xamarin Forms 应用程序。
当尝试通过 Visual Studio 2019 连接 Mac book Pro 13 (10.13.6) 时,我得到了连接到 MacBook 的奇怪状态(检查屏幕图标下的“链”),但实际上我不是,因为它不会出现在配对的设备中。
运行应用程序时,我收到一个错误消息,显示 A remote error occurred in the connected Mac
当我点击消息时,我会看到一个日志,并在其中看到很多步骤和四个错误。
8 PkgDefManagement 初始化 VisualStudio 2021/03/03 14:54:24.665
9 根文件夹 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 仍然无法加载 MEF 组件 DLL:无法加载文件 或程序集 'Microsoft.Windows.Simulator.Client,Version=16.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a' 或其中之一 依赖关系。该系统找不到指定的文件。 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 仍然无法加载 MEF 组件 DLL:无法加载文件 或程序集“Microsoft.VisualStudio.CppSvc.Internal,版本=16.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a' 或其中之一 依赖关系。该系统找不到指定的文件。 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 错误 StreamJsonRpc.RemoteInvocationException:枚举错误
在凭证商店.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()
--- 从上一个抛出异常的位置开始的堆栈跟踪结束 --- 在
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务
任务)在
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务
任务)在
Microsoft.Developer.IdentityService.AccountProvider.GithubAccountProviderClient.d__40.MoveNext()
--- 从上一个抛出异常的位置开始的堆栈跟踪结束 ---at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务
任务)在
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务
任务)在
Microsoft.Developer.IdentityService.AccountProvider.GithubAccountProviderClient.d__44.MoveNext()
--- 从上一个抛出异常的位置开始的堆栈跟踪结束 --- 在
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务
任务)在
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务
任务)在
Microsoft.VisualStudio.Shell.Connected.Userinformation.UserinformationPackage.d__11.MoveNext()
--- 从上一个抛出异常的位置开始的堆栈跟踪结束 --- 在
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务
任务)在
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务
任务)在
Microsoft.VisualStudio.Shell.vstaskLibraryHelper.c__displayClass32_0.
....
然后在最底部
914 没有找到推广 MruList 的项目 2021/03/03 15:26:46.494
915 正在输入 MruItemsstoreServiceDecorator.AddMRUItem。物品类别: 335041a8-b61a-4e9f-b0fe-d42dfa193855,lpsz项目: %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 错误 System.NullReferenceException:未将对象引用设置为实例 一个对象的.at Xamarin.Messaging.Windows.ErrorsManager.c__displayClass3_0.b__0(IErrorItem 项)在 C:\A\1\36\s\src\Core\Xamarin.Messaging.Windows\ErrorsManager.cs:line 24 在 Clide.ErrorsManager.c__displayClass7_0.b__0(对象发送者, EventArgs e) 输入 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 条目)at Microsoft.VisualStudio.Shell.TableControl.Implementation.TableControlEventManager.c__displayClass60_1`1.b__0()at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource,Action call) --- 上一个堆栈跟踪的结束 抛出异常的位置 --- 在 Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(异常 异常对象)
到此结束。
这是怎么回事?我该如何进一步调试?
解决方法
答案是获得支持最新 macOS (High Spur) 和最新 XCode (12) 的 Mac Book Air,并且 Visual Studio 和 Mac book 能够成功连接。
因此,一种潜在的解决方案是升级您的硬件。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。