OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。
StackTrace:
在 System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
在 System.Net.SafeFreeContextBufferChannelBinding.QueryContextChannelBinding_SECURITY(SafeDeleteContext phContext, ContextAttribute contextAttribute, Bindings* buffer, SafeFreeContextBufferChannelBinding refHandle)
在 System.Net.SSPISecureChannelType.QueryContextChannelBinding(SafeDeleteContext phContext, ContextAttribute attribute, SafeFreeContextBufferChannelBinding& refHandle)
在 System.Net.TlsStream.Dispose(Boolean disposing)
在 System.IO.Stream.Close()
在 System.Net.PooledStream.TryCloseNetworkStream(Boolean closeWithTimeout, Int32 timeout)
在 System.Net.PooledStream.CancelPendingIoAndCloseIfSafe(Boolean closeWithTimeout, Int32 timeout)
在 System.Net.PooledStream.Close(Int32 timeout)
在 System.Net.Connection.HandleError(Boolean writeDone, Boolean readDone, WebExceptionStatus webExceptionStatus, ConnectionReturnResult& returnResult)
在 System.Net.ConnectStream.IOError(Exception exception, Boolean willThrow)
在 System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
在 System.Net.LazyAsyncResult.Complete(IntPtr userToken)
在 System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
在 System.Net.TlsStream.ResumeIOWorker(Object result)
在 System.Net.TlsStream.WakeupPendingIO(IAsyncResult ar)
在 System.Net.LazyAsyncResult.Complete(IntPtr userToken)
在 System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
在 System.Net.Security.SslState.FinishHandshake(Exception e, AsyncProtocolRequest asyncRequest)
在 System.Net.Security.SslState.ReadFrameCallback(AsyncProtocolRequest asyncRequest)
在 System.Net.AsyncProtocolRequest.CompleteRequest(Int32 result)
在 System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes)
在 System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
在 System.Net.LazyAsyncResult.Complete(IntPtr userToken)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Net.ContextAwareResult.Complete(IntPtr userToken)
在 System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
在 System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
在 System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)