System.Runtime.InteropServices.COMException (0x8007139F): 组或资源的状态不是执行请求操作的正确状态。 (异常来自 HRESULT:0x8007139F)
在 Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Controller.MoveFocus(COREWEBVIEW2_MOVE_FOCUS_REASON reason)
在 Microsoft.Web.WebView2.Core.CoreWebView2Controller.MoveFocus(CoreWebView2MoveFocusReason reason)
在 Microsoft.Web.WebView2.WinForms.WebView2.OnGotFocus(EventArgs e)
在 System.Windows.Forms.Control.InvokeGotFocus(Control toInvoke, EventArgs e)
在 System.Windows.Forms.Control.WmSetFocus(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 Microsoft.Web.WebView2.WinForms.WebView2.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
9409921
有关调用实时(JIT)调试而不是此对话框
webview2报错CoreWebView2 members cannot be accessed after the WebView2 control is disposed
最新推荐文章于 2025-11-20 13:07:40 发布
博客详细记录了在使用 Edge WebView2 控件时遇到的异常情况,异常信息显示为 `COMException` (0x8007139F),指出资源状态不正确。该问题在版本9409921的EDGEDEV中出现,导致无法正常处理焦点转移。解决方法是回退到稳定的老版本EdgeDev,或者等待新版本修复。此问题涉及到UI交互和WebView2的内部处理。

最低0.47元/天 解锁文章
488

被折叠的 条评论
为什么被折叠?



