Exception:CoreWebView2 members cannot be accessed after the WebView2 control is disposed.Class not registered Class not registered

报错信息

InvalidOperationException: CoreWebView2 members cannot be accessed after the WebView2 control is disposed.
StackTrace:
   at Microsoft.Web.WebView2.Core.CoreWebView2.get_Profile()
   at Microsoft.Web.WebView2.Wpf.WebView2.Uninitialize(Boolean browserCrashed)
   at Microsoft.Web.WebView2.Wpf.WebView2.Dispose(Boolean disposing)
   at System.Windows.Interop.HwndHost.WeakEventDispatcherShutdown.OnShutdownFinished(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Threading.Dispatcher.ShutdownImplInSecurityContext(Object state)
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.Dispatcher.ShutdownImpl()
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at Quicker.App.Main()

COMException: Class not registered

Class not registered

StackTrace:
   at Microsoft.Web.WebView2.Core.Raw.ICoreWebView2_13.get_Profile()
   at Microsoft.Web.WebView2.Core.CoreWebView2.get_Profile()

 

解决方法

暂无解决方案。

相关信息
0 查看
2024-02-21 08:06
Quicker版本
版本 反馈次数