Exception:CoreWebView2 members cannot be accessed after the WebView2 control is disposed.组或资源的状态不是执行请求操作的正确状态。 (异常来自 HRESULT:0x8007139F)

报错信息 1
InvalidOperationException: CoreWebView2 members cannot be accessed after the WebView2 control is disposed.
   在 Microsoft.Web.WebView2.Core.CoreWebView2Controller.set_Bounds(Rectangle value)
   在 Microsoft.Web.WebView2.Wpf.WebView2.OnWindowPositionChanged(Rect rcBoundingBox)
   在 System.Windows.Interop.HwndHost.UpdateWindowPos()
   在 System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   在 System.Windows.ContextLayoutManager.UpdateLayout()
   在 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   在 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   在 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   在 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)


COMException: 组或资源的状态不是执行请求操作的正确状态。 (异常来自 HRESULT:0x8007139F)
   在 Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Controller.set_Bounds(tagRECT Bounds)
   在 Microsoft.Web.WebView2.Core.CoreWebView2Controller.set_Bounds(Rectangle value)


版本:1.39.41 2025-07-28 08:22 Microsoft Windows NT 10.0.26100.0
版本:1.39.41 2025-07-28 08:22 Microsoft Windows NT 10.0.26100.0