LINQPad.QueryPlanVisualizer icon indicating copy to clipboard operation
LINQPad.QueryPlanVisualizer copied to clipboard

Cannot load WebView2 assembly

Open ludovicasa opened this issue 4 years ago • 8 comments

Hello,

I have an issue using the plugin. It says it cannot load the WebView2 assembly.

image

System info: Edition Windows 10 Pro Version 21H1 Installed on ‎26/‎08/‎2021 OS build 19043.1237 Experience Windows Feature Experience Pack 120.2212.3530.0

image

In LINQPad the option to use Edge's Chromium engine to render results is checked. image

Any idea?

Thank you.

ludovicasa avatar Oct 06 '21 13:10 ludovicasa

Do you have WebView2 runtime installed? If yes, which version?

Giorgi avatar Oct 06 '21 14:10 Giorgi

Installed using the Evergreen Bootstrapper.

image

ludovicasa avatar Oct 06 '21 17:10 ludovicasa

It works if I install the library from NuGet but not via the plugins folder.

ludovicasa avatar Oct 07 '21 08:10 ludovicasa

Can you install the library from NuGet, run this code in LINQPad and paste the output here?

typeof(CoreWebView2Environment).Assembly.FullName

Giorgi avatar Oct 08 '21 14:10 Giorgi

image

ludovicasa avatar Oct 11 '21 16:10 ludovicasa

I finally figure it out how to install as a plugin successfully. I just wrote a post in my blog. (Sorry, it's Traditional Chinese only)

doggy8088 avatar Feb 11 '22 16:02 doggy8088

@doggy8088 What did you do that is missing from the Readme?

Giorgi avatar Feb 11 '22 18:02 Giorgi

The error is gone if I manually reference the Microsoft.Web.WebView2.Core.dll library in the query (taken from Microsoft.Web.WebView2 NuGet package).

ludovicasa avatar Mar 01 '22 11:03 ludovicasa