Windows Forms WebView2 Runtime Not Found Exception although it is installed

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"))); 

I have the run time installed

The loader .dll is in the .exe folder of the application

What could be the problem ?

5

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) 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

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like