[BUG] Can not display
Expected Behavior
nable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment10. This may happen if you are using an interface not supported by the version of the WebView2 Runtime you are using. For instance, if you are using an experimental interface from an older SDK that has been modified or removed in a newer runtime. Or, if you are using a public interface from a newer SDK that wasn't implemented in an older runtime. For more information about WebView2 versioning please visit the following: https://learn.microsoft.com/microsoft-edge/webview2/concepts/versioning ---> System.InvalidCastException: 无法将类型为“System.__ComObject”的 COM 对象强制转换为接口类型“Microsoft.Web.WebView2.Core.Raw.ICoreWebView2Environment10”。此操作失败的原因是对 IID 为“{EE0EB9DF-6F12-46CE-B53F-3F47B9C928E0}”的接口的 COM 组件调用 QueryInterface 因以下错误而失败: 不支持此接口 (异常来自 HRESULT:0x80004002 (E_NOINTERFACE))。 在 Microsoft.Web.WebView2.Core.CoreWebView2Environment.get__nativeICoreWebView2Environment10() --- 内部异常堆栈跟踪的结尾 --- 在 Microsoft.Web.WebView2.Core.CoreWebView2Environment.get__nativeICoreWebView2Environment10() 在 Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerOptions() 在 Microsoft.Web.WebView2.WinForms.CoreWebView2CreationProperties.CreateCoreWebView2ControllerOptions(CoreWebView2Environment environment) 在 Microsoft.Web.WebView2.WinForms.WebView2.<InitCoreWebView2Async>d__25.MoveNext()
Current Behaviour
Reproducible Example
pip install lightweight-charts
Environment
- OS:win11
- Library:lightweight-charts-2.1