Exception:CoreWebView2 members cannot be accessed after the WebView2 control is disposed.群組或資源不是處在執行要求操作的正確狀態。 (Exception from HRESULT: 0x8007139F)

报错信息 1
InvalidOperationException: CoreWebView2 members cannot be accessed after the WebView2 control is disposed.
StackTrace:
   於 Microsoft.Web.WebView2.Core.CoreWebView2.get_Profile()
   於 Microsoft.Web.WebView2.Wpf.WebView2.Uninitialize(Boolean browserCrashed)
   於 Microsoft.Web.WebView2.Wpf.WebView2.Dispose(Boolean disposing)
   於 System.Windows.Interop.HwndHost.WeakEventDispatcherShutdown.OnShutdownFinished(Object sender, EventArgs e)
   於 System.EventHandler.Invoke(Object sender, EventArgs e)
   於 System.Windows.Threading.Dispatcher.ShutdownImplInSecurityContext(Object state)
   於 MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   於 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)
   於 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   於 System.Windows.Threading.Dispatcher.ShutdownImpl()
   於 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   於 System.Windows.Application.RunDispatcher(Object ignore)
   於 System.Windows.Application.RunInternal(Window window)
   於 Quicker.App.Main()

COMException: 群組或資源不是處在執行要求操作的正確狀態。 (Exception from HRESULT: 0x8007139F)
StackTrace:
   於 Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_13.get_Profile()
   於 Microsoft.Web.WebView2.Core.CoreWebView2.get_Profile()

版本:1.42.8 2025-05-08 18:05 Microsoft Windows NT 10.0.19045.0