Exception:句柄无效。

报错信息 1
HttpListenerException: 句柄无效。
--ErrorCode: 6
StackTrace:
   在 System.Net.HttpResponseStream.Dispose(Boolean disposing)
   在 System.IO.Stream.Close()
   在 System.Net.HttpListenerResponse.Dispose(Boolean disposing)
   在 System.Net.HttpListenerResponse.System.IDisposable.Dispose()
   在 System.Net.HttpListenerResponse.Close()
   在 __ScriptExecution.__7p5sgw6d.GeminiApiForm.<HandleRequest>d__28.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()

版本:1.44.47 2026-01-14 22:25 Microsoft Windows NT 10.0.22621.0
报错信息 2
HttpListenerException: 句柄无效。
--ErrorCode: 6
StackTrace:
   在 System.Net.HttpResponseStream.Dispose(Boolean disposing)
   在 System.IO.Stream.Close()
   在 System.Net.HttpListenerResponse.Dispose(Boolean disposing)
   在 System.Net.HttpListenerResponse.System.IDisposable.Dispose()
   在 System.Net.HttpListenerResponse.Close()
   在 __ScriptExecution.__hh9dj5kh.GeminiApiForm.<HandleRequest>d__28.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()

版本:1.44.31 2025-12-30 13:59 Microsoft Windows NT 10.0.26200.0
报错信息 3
Win32Exception: 句柄无效。
--NativeErrorCode: 6
StackTrace:
   在 MS.Win32.UnsafeNativeMethods.UnregisterClass(IntPtr atomString, IntPtr hInstance)
   在 MS.Win32.HwndWrapper.UnregisterClass(Object arg)
   在 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)

版本:1.44.22 2025-12-22 11:27 Microsoft Windows NT 10.0.26100.0
报错信息 4
HttpListenerException: 句柄无效。
--ErrorCode: 6
StackTrace:
   在 System.Net.HttpResponseStream.Dispose(Boolean disposing)
   在 System.IO.Stream.Close()
   在 System.Net.HttpListenerResponse.Dispose(Boolean disposing)
   在 System.Net.HttpListenerResponse.System.IDisposable.Dispose()
   在 System.Net.HttpListenerResponse.Close()
   在 __ScriptExecution.__df4yp0kj.GeminiApiForm.<HandleRequest>d__28.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()

版本:1.44.22 2025-12-18 20:16 Microsoft Windows NT 10.0.26100.0
报错信息 5
HttpListenerException: 句柄无效。
--ErrorCode: 6
StackTrace:
   在 System.Net.HttpResponseStream.Dispose(Boolean disposing)
   在 System.IO.Stream.Close()
   在 System.Net.HttpListenerResponse.Dispose(Boolean disposing)
   在 System.Net.HttpListenerResponse.System.IDisposable.Dispose()
   在 System.Net.HttpListenerResponse.Close()
   在 __ScriptExecution.__ofr0uug7.GeminiApiForm.<HandleRequest>d__28.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()

版本:1.44.44 2025-12-18 12:30 Microsoft Windows NT 10.0.19045.0