【发布时间】:2020-03-25 11:04:17
【问题描述】:
我读过类似的问题,但它们不适合我的情况。
所以我有一个开发者 Apple ID 帐户(并且我同意 Apple 条款和条件),我可以在 Mac 上的 XCode 和 Visual Studio 中使用它。
但是当我尝试将同一个帐户添加到我桌面上的 Visual Studio 中时:
我得到下一个错误:
可能是什么问题?
附:我在 VS 16.5.0 和 16.5.1 中试过这个。
从 10.12.20 更新 我尝试了几个VS版本直到16.9.0 Preview 2.0,问题仍然存在。上一个可用的 VS 版本是 16.4.6,但由于 Xcode 和 Xamarin 更新,我无法使用它。
在 IDE 日志中我看到一个异常:
System.Net.Mqtt.Sdk.MqttClientImpl|信息|0|客户端 --- - 主题的应用消息 ---/error/xvs/idb/add-developer-account 已收到 Xamarin.Messaging.Client.MessagingClient|错误|0|发生错误 接收者在执行主题帖子时 xvs/idb/add-developer-account 和客户端 --- Xamarin.Messaging.Exceptions.MessagingRemoteException:错误 发生在客户端 IDBLocal1 --- 执行主题回复时 xvs/idb/add-developer-account ---> Xamarin.Messaging.IDB.Contracts.AppleProvisioningException:错误 发送请求时发生。在 Xamarin.Messaging.IDB.AppleProvisioningManager.d__13.MoveNext() 在 C:\A\1\5\s\src\Messaging\Xamarin.Messaging.IDB.Local\AppleProvisioningManager.cs:line 108 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.Messaging.IDB.AppleProvisioningManager.d__10.MoveNext() 在 C:\A\1\5\s\src\Messaging\Xamarin.Messaging.IDB.Local\AppleProvisioningManager.cs:line 53 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.Messaging.IDB.Local.AddDeveloperAccountHandler.d__5.MoveNext() 在 C:\A\1\5\s\src\Messaging\Xamarin.Messaging.IDB.Local\Handlers\AddDeveloperAccountHandler.cs:line 26 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.Messaging.Client.RequestHandler
2.<HandleAsync>d__5.MoveNext() in C:\A\1\400\s\src\Xamarin.Messaging.Client\Handlers\RequestHandler.cs:line 0 --- 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 Xamarin.Messaging.Client.MessageHandlerManager.<>c__DisplayClass16_12.d.MoveNext() 在 C:\A\1\400\s\src\Xamarin.Messaging.Client\MessageHandlerManager.cs:line 0 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.Messaging.Client.MessagingClient.d__32 2.MoveNext() in C:\A\1\400\s\src\Xamarin.Messaging.Client\MessagingClient.cs:line 0 --- End of inner exception stack trace --- at Xamarin.Messaging.Client.ApplicationMessageExtensions.<>c__DisplayClass10_01.b__1(MqttApplicationMessage m) 在 C:\A\1\400\s\src\Xamarin.Messaging.Client\Extensions\ApplicationMessageExtensions.cs:line 194 在 System.Reactive.Linq.ObservableImpl.Select2.Selector._.OnNext(TSource value) in d:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Select.cs:line 39 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__212.MoveNext() 在 C:\A\1\400\s\src\Xamarin.Messaging.Client\MessagingClient.cs:line 190 System.Net.Mqtt.Sdk.ClientPacketListener|信息|0|客户端 --- - 将 Publish 消息发送到流 PublishReceiverFlow 和主题---/response/xma/ping/Broker1---
在 Xamarin.IOS 日志中:
System.Net.Mqtt.Sdk.MqttClientImpl:信息:0:客户端 IDBLocal---- - 主题的应用消息 xvs/idb/add-developer-account 收到时间:2020-12-10 11:08:06Z Xamarin.Messaging.IDB.AppleProvisioningManager:错误:0: System.Net.Http.HttpRequestException:发送时出错 请求。 ---> System.Net.WebException:请求被中止: 无法创建 SSL/TLS 安全通道。在 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
在 System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) --- 内部异常堆栈跟踪结束 --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.MacDev.AppleSigning.DeveloperPortalWebClient.c__DisplayClass25_0.d.MoveNext() 在 /Users/runner/work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/DeveloperPortalWebClient.cs:line 127 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.MacDev.AppleSigning.DeveloperPortalWebClient.d__25.MoveNext() 在 /Users/runner/work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/DeveloperPortalWebClient.cs:line 125 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.MacDev.AppleSigning.AppleIDAuthenticationProvider.d__42.MoveNext() 在 /Users/runner/work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/AppleIDAuthenticationProvider.cs:line 411 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.MacDev.AppleSigning.AppleIDAuthenticationProvider.d__30.MoveNext() 在 /Users/runner/work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/AppleIDAuthenticationProvider.cs:line 115 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.MacDev.AppleSigning.AppleIDAuthenticationProvider.d__29.MoveNext() 在 /Users/runner/work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/AppleIDAuthenticationProvider.cs:line 109 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.MacDev.AppleSigning.AuthorizedDeveloperPortalClient.d__4.MoveNext() 在 /Users/runner/work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/AuthorizedDeveloperPortalClient.cs:line 47 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.MacDev.AppleSigning.AppleDeveloperPortal.d__46.MoveNext() 在 /Users/runner/work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/AppleDeveloperPortal/AppleDeveloperPortal.cs:line 939 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.MacDev.AppleSigning.SyncDeveloperInfo.d__5.MoveNext() 在 /Users/runner/work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/ProvisioningTasks/SyncDeveloperInfo.cs:line 50 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.MacDev.AppleSigning.SyncDeveloperAccountData 1.<Run>d__17.MoveNext() in /Users/runner/work/1/s/External/maciostools/Xamarin.MacDev.AppleSigning/ProvisioningTasks/SyncDeveloperAccountData.cs:line 62 --- 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 Xamarin.Messaging.IDB.AppleProvisioningManager.<GetUpdatedAccountByUsernameAsync>d__13.MoveNext() in C:\A\1\5\s\src\Messaging\Xamarin.Messaging.IDB.Local\AppleProvisioningManager.cs:line 94: 2020-12-10 11:08:09Z Xamarin.Messaging.Client.MessagingClient: Error: 0: An error occurred on client IDBLocal169000196 while executing a reply for topic xvs/idb/add-developer-account Xamarin.Messaging.IDB.Contracts.AppleProvisioningException: An error occurred while sending the request. at Xamarin.Messaging.IDB.AppleProvisioningManager.<GetUpdatedAccountByUsernameAsync>d__13.MoveNext() in C:\A\1\5\s\src\Messaging\Xamarin.Messaging.IDB.Local\AppleProvisioningManager.cs:line 108 --- 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 Xamarin.Messaging.IDB.AppleProvisioningManager.<AddDeveloperAccountAsync>d__10.MoveNext() in C:\A\1\5\s\src\Messaging\Xamarin.Messaging.IDB.Local\AppleProvisioningManager.cs:line 53 --- 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 Xamarin.Messaging.IDB.Local.AddDeveloperAccountHandler.<ExecuteAsync>d__5.MoveNext() in C:\A\1\5\s\src\Messaging\Xamarin.Messaging.IDB.Local\Handlers\AddDeveloperAccountHandler.cs:line 26 --- 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 Xamarin.Messaging.Client.RequestHandler2.d__5.MoveNext() 在 C:\A\1\400\s\src\Xamarin.Messaging.Client\Handlers\RequestHandler.cs:line 0 --- 从先前抛出异常的位置结束堆栈跟踪 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)在 Xamarin.Messaging.Client.MessageHandlerManager.c__DisplayClass16_12.<<RegisterHandlerAsync>b__2>d.MoveNext() in C:\A\1\400\s\src\Xamarin.Messaging.Client\MessageHandlerManager.cs:line 0 --- 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 Xamarin.Messaging.Client.MessagingClient.<ReplyAsync>d__322.MoveNext() 在 C:\A\1\400\s\src\Xamarin.Messaging.Client\MessagingClient.cs:line 0: 2020-12-10 11:08:09Z
【问题讨论】:
-
您是否进入 2 因素身份验证步骤?
-
对不起,我不明白。正如我之前看到的,在添加苹果帐户时不需要 2 因素身份验证。
-
也许这是我这边的设置。我尝试添加帐户,输入用户名和密码后,我被要求进行 2 因素身份验证。你在另一台机器上试过吗?
-
我记得,添加过程中不需要第二步(我认为应该是本地设置)。
标签: c# ios visual-studio visual-studio-2019