C# 调用服务时发生SecureChannelFailure

C# 调用服务时发生SecureChannelFailure,c#,xamarin,xamarin.android,xamarin.forms,C#,Xamarin,Xamarin.android,Xamarin.forms,我得到以下例外情况。然而,问题是我不知道它在我的代码中发生的确切位置 我在所有的任务中都有一个尝试 有什么想法吗 08:22:22 - Error in TaskSchedulerOnUnobservedTaskException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserv

我得到以下例外情况。然而,问题是我不知道它在我的代码中发生的确切位置

我在所有的任务中都有一个尝试

有什么想法吗

08:22:22 - Error in TaskSchedulerOnUnobservedTaskException: 
A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.

Inner exception: An error occurred while sending the request
  at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext () [0x00486] in <f3da26af63564157b82209f8aeeeae05>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Net.Http.HttpClient+<SendAsyncWorker>c__async0.MoveNext () [0x000f3] in <f3da26af63564157b82209f8aeeeae05>:0 
Inner exception: Error: SecureChannelFailure (The authentication or decryption has failed.)
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00014] in <ce978ecf81d8475694da9acbd4ed2610>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext () [0x0041e] in <f3da26af63564157b82209f8aeeeae05>:0 
Inner exception: The authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x00057] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) [0x00011] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Net.Security.Private.LegacySslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000e] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) [0x0006a] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
Inner exception: Error while sending TLS Alert (Fatal:InternalError): System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: Unable to read data from the transport connection: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.. ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
  at System.Net.Sockets.Socket.ThrowIfDisposedAndClosed () [0x00021] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult asyncResult, System.Net.Sockets.SocketError& errorCode) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult result) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.NetworkStream.EndRead (System.IAsyncResult asyncResult) [0x0005f] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00040] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x0003b] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <35fb91e7655f4c71acdb8be6fa48e655>:0 

Inner exception: Unable to write data to the transport connection: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'..
  at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.AsyncCallback callback, System.Object state) [0x00113] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.BeginSendRecord (Mono.Security.Protocol.Tls.ContentType contentType, System.Byte[] recordData, System.AsyncCallback callback, System.Object state) [0x00026] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendRecord (Mono.Security.Protocol.Tls.ContentType contentType, System.Byte[] recordData) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (Mono.Security.Protocol.Tls.Alert alert) [0x00027] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (System.Exception& ex) [0x00021] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
Inner exception: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
  at System.Net.Sockets.Socket.ThrowIfDisposedAndClosed () [0x00021] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.Socket.BeginSend (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socket_flags, System.AsyncCallback callback, System.Object state) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.AsyncCallback callback, System.Object state) [0x000b4] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
08:22:22 - Error in TaskSchedulerOnUnobservedTaskException:  System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error: SecureChannelFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: Error while sending TLS Alert (Fatal:InternalError): System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: Unable to read data from the transport connection: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.. ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
  at System.Net.Sockets.Socket.ThrowIfDisposedAndClosed () [0x00021] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult asyncResult, System.Net.Sockets.SocketError& errorCode) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult result) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.NetworkStream.EndRead (System.IAsyncResult asyncResult) [0x0005f] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00040] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x0003b] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <35fb91e7655f4c71acdb8be6fa48e655>:0  ---> System.IO.IOException: Unable to write data to the transport connection: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.. ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
  at System.Net.Sockets.Socket.ThrowIfDisposedAndClosed () [0x00021] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.Socket.BeginSend (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socket_flags, System.AsyncCallback callback, System.Object state) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.AsyncCallback callback, System.Object state) [0x000b4] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.AsyncCallback callback, System.Object state) [0x00113] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.BeginSendRecord (Mono.Security.Protocol.Tls.ContentType contentType, System.Byte[] recordData, System.AsyncCallback callback, System.Object state) [0x00026] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendRecord (Mono.Security.Protocol.Tls.ContentType contentType, System.Byte[] recordData) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (Mono.Security.Protocol.Tls.Alert alert) [0x00027] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (System.Exception& ex) [0x00021] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x00057] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) [0x00011] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Net.Security.Private.LegacySslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000e] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) [0x0006a] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00014] in <ce978ecf81d8475694da9acbd4ed2610>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext () [0x0041e] in <f3da26af63564157b82209f8aeeeae05>:0 
   --- End of inner exception stack trace ---
  at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext () [0x00486] in <f3da26af63564157b82209f8aeeeae05>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Net.Http.HttpClient+<SendAsyncWorker>c__async0.MoveNext () [0x000f3] in <f3da26af63564157b82209f8aeeeae05>:0 
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error: SecureChannelFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: Error while sending TLS Alert (Fatal:InternalError): System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: Unable to read data from the transport connection: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.. ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
  at System.Net.Sockets.Socket.ThrowIfDisposedAndClosed () [0x00021] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult asyncResult, System.Net.Sockets.SocketError& errorCode) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.Socket.EndReceive (System.IAsyncResult result) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.NetworkStream.EndRead (System.IAsyncResult asyncResult) [0x0005f] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00040] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x0003b] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <35fb91e7655f4c71acdb8be6fa48e655>:0  ---> System.IO.IOException: Unable to write data to the transport connection: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.. ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
  at System.Net.Sockets.Socket.ThrowIfDisposedAndClosed () [0x00021] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.Socket.BeginSend (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socket_flags, System.AsyncCallback callback, System.Object state) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.AsyncCallback callback, System.Object state) [0x000b4] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.AsyncCallback callback, System.Object state) [0x00113] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.BeginSendRecord (Mono.Security.Protocol.Tls.ContentType contentType, System.Byte[] recordData, System.AsyncCallback callback, System.Object state) [0x00026] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendRecord (Mono.Security.Protocol.Tls.ContentType contentType, System.Byte[] recordData) [0x00000] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (Mono.Security.Protocol.Tls.Alert alert) [0x00027] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (System.Exception& ex) [0x00021] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x00057] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) [0x00011] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Net.Security.Private.LegacySslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000e] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) [0x0006a] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <35fb91e7655f4c71acdb8be6fa48e655>:0 
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00014] in <ce978ecf81d8475694da9acbd4ed2610>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext () [0x0041e] in <f3da26af63564157b82209f8aeeeae05>:0 
   --- End of inner exception stack trace ---
  at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext () [0x00486] in <f3da26af63564157b82209f8aeeeae05>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <ce978ecf81d8475694da9acbd4ed2610>:0 
  at System.Net.Http.HttpClient+<SendAsyncWorker>c__async0.MoveNext () [0x000f3] in <f3da26af63564157b82209f8aeeeae05>:0 <---
08:22:22-TaskSchedulerOnUnobservedTaskException中的错误:
通过等待任务或访问其exception属性,未观察到任务的异常。结果,未观察到的异常被终结器线程重新抛出。
内部异常:发送请求时出错
在System.Net.Http.HttpClientHandler+c_uasync0.MoveNext()[0x00486]中:0
---来自引发异常的上一个位置的堆栈结束跟踪---
0中的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()[0x0000c]处
0中的System.Runtime.CompilerServices.TaskWaiter.ThrowForNonSuccess(System.Threading.Tasks.Task任务)[0x0004e]处
0中的System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task任务)[0x0002e]
0中的System.Runtime.CompilerServices.TaskWaiter.ValidateEnd(System.Threading.Tasks.Task任务)[0x0000b]处
在System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult()[0x00000]中:0
在System.Net.Http.HttpClient+c__async0.MoveNext()[0x000f3]中:0
内部异常:错误:SecureChannelFailure(身份验证或解密失败。)
位于:0中的System.Net.HttpWebRequest.EndGetResponse(System.IAsyncResult asyncResult)[0x00064]处
在System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic(System.IAsyncResult iar,System.Func`2[T,TResult]endFunction,System.Action`1[T]endAction,System.Threading.Tasks.Task`1[TResult]promise,System.Boolean requiresSynchronization)[0x00014]中:0
---来自引发异常的上一个位置的堆栈结束跟踪---
0中的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()[0x0000c]处
0中的System.Runtime.CompilerServices.TaskWaiter.ThrowForNonSuccess(System.Threading.Tasks.Task任务)[0x0004e]处
0中的System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task任务)[0x0002e]
0中的System.Runtime.CompilerServices.TaskWaiter.ValidateEnd(System.Threading.Tasks.Task任务)[0x0000b]处
在System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult()[0x00000]中:0
在System.Net.Http.HttpClientHandler+c_uasync0.MoveNext()[0x0041e]中:0
内部异常:身份验证或解密失败。
位于:0中的Mono.Security.Protocol.Tls.SslStreamBase.EndRead(System.IAsyncResult asyncResult asyncResult)[0x00057]
位于:0中的Mono.Net.Security.Private.legacyssltream.EndAuthenticateAsClient(System.IAsyncResult asyncResult)[0x00011]
在Mono.Net.Security.Private.legacyssltream.authenticatesClient(System.String targetHost,System.Security.Cryptography.X509Certificates.X509CertificateCollection客户端证书,System.Security.Authentication.SslProtocols enabledSslProtocols,System.Boolean CheckCertificateResortation)[0x0000e]中:0
在:0中的Mono.Net.Security.MonoTlsStream.CreateStream(System.Byte[]缓冲区)[0x0006a]处
内部异常:发送TLS警报时出错(致命:内部错误):System.IO.IOException:身份验证或解密失败。-->System.IO.IOException:无法从传输连接读取数据:无法访问已处理的对象。
对象名称:“System.Net.Sockets.Socket”…-->System.ObjectDisposedException:无法访问已处置的对象。
对象名称:“System.Net.Sockets.Socket”。
在0中的System.Net.Sockets.Socket.ThrowifdisposedClosed()[0x00021]处
在System.Net.Sockets.Socket.EndReceive处(System.IAsyncResult asyncResult,System.Net.Sockets.SocketerError&errorCode)[0x00000]输入:0
在0中的System.Net.Sockets.Socket.EndReceive(System.IAsyncResult结果)[0x00000]处
在:0中的System.Net.Sockets.NetworkStream.EndRead(System.IAsyncResult asyncResult)[0x0005f]处
---内部异常堆栈跟踪的结束---
位于:0中的Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord(System.IAsyncResult asyncResult)[0x00040]
位于Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord(System.IAsyncResult ar,System.Boolean ignoreEmpty)[0x00000]in:0
位于:0中的Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker(System.IAsyncResult结果)[0x00071]
---内部异常堆栈跟踪的结束---
在0中的Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake(System.IAsyncResult result)[0x0003b]处
在:0中的Mono.Security.Protocol.Tls.SslStreamBase.asynchHandshakeCallback(System.IAsyncResult asyncResult asyncResult)[0x0000c]处
内部异常:无法将数据写入传输连接:无法访问已释放的对象。
对象名称:“System.Net.Sockets.Socket”。。
在System.Net.Sockets.NetworkStream.BeginWrite(System.Byte[]缓冲区、System.Int32偏移量、System.Int32大小、System.AsyncCallback回调、System.Object状态)[0x00113]中:0
在Mono.Security.Protocol.Tls.RecordProtocol.BeginSendRecord(Mono.Security.Protocol.Tls.ContentType ContentType,System.Byte[]recordData,System.AsyncCallback回调,System.Object state)[0x00026]中:0
位于:0中的Mono.Security.Protocol.Tls.RecordProtocol.SendRecord(Mono.Security.Protocol.Tls.ContentType ContentType,System.Byte[]recordData)[0x00000]
位于:0中的Mono.Security.Protocol.Tls.RecordProtocol.SendAlert(Mono.Security.Protocol.Tls.Alert Alert)[0x00027]
位于:0中的Mono.Security.Protocol.Tls.RecordProtocol.SendAlert(System.Exception&ex)[0x00021]
内部异常:无法访问已释放的对象。
对象名称:“System.Net.Sockets.Socket”。
在0中的System.Net.Sockets.Socket.ThrowifdisposedClosed()[0x00021]处
位于System.Net.Sockets.Socket.BeginSend(System.Byte[]缓冲区、System.Int32偏移量、System.Int32大小、System.Net.Sockets.SocketFlags套接字_标志、System.AsyncCallback回调、System.Objec