AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。 StackTrace: 在 MS.Win32.UnsafeNativeMethods.TryPostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) 在 System.Windows.Threading.Dispatcher.RequestForegroundProcessing() 在 System.Windows.Threading.Dispatcher.CriticalRequestProcessing(Boolean force) 在 System.Windows.Threading.Dispatcher.ProcessQueue() 在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。 StackTrace: 在 System.Net.UnsafeNclNativeMethods.SafeNetHandles_SECURITY.DeleteSecurityContext(SSPIHandle& handlePtr) 在 System.Net.SafeDeleteContext_SECURITY.ReleaseHandle() 在 System.Runtime.InteropServices.SafeHandle.InternalDispose() 在 System.Net.Security.SecureChannel.Close() 在 System.Net.Security.SslState.SetException(Exception e) 在 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)