I am trying to initialize a WebView2 component in a Windows Forms using .Net4.8 getting the below error:
Microsoft.Web.WebView2.Core.WebView2RuntimeNotFoundException: 'Couldn't find a compatible Webview2 Runtime installation to host WebViews.'
FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
It happens on this line:
await PowerBi_web.EnsureCoreWebView2Async(await CoreWebView2Environment.CreateAsync(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WebView2"))); What could be the problem ?
5Related questions 2 Cannot Load Fixed Version Runtime for Webview2 652 How can I save application settings in a Windows Forms application? 1 Activating Fixed Version using Webview2 in C# (Webform) Related questions 2 Cannot Load Fixed Version Runtime for Webview2 652 How can I save application settings in a Windows Forms application? 1 Activating Fixed Version using Webview2 in C# (Webform) 274 Disable resizing of a Windows Forms form 12 Windows Forms ComboBox causing intermittent System.AccessViolationException 1 UWP WebView2 not working with WebView2 Runtime installed 310 Best way to implement keyboard shortcuts in a Windows Forms application? Load 4 more related questions Show fewer related questions
Reset to default
