SteveSandersonMS / WebWindow

.NET Core library to open native OS windows containing web UI on Windows, Mac, and Linux. Experimental.
Apache License 2.0
1.99k stars 214 forks source link

Unable to load DLL 'WebWindow.Native' or one of its dependencies #109

Open rex-pj opened 4 years ago

rex-pj commented 4 years ago

Hello, I run my application and I get an error like this. image

OS: Windows 10 Pro Version 10.0.18363.836 Microsoft Edge Version 83.0.478.37 (Official Build) (64-bit) WebWindow.Blazor version: 0.1.0-20200214.10

My app still works ok last week (22/05/2020), but today (25/05/2020) is not.

eivarin commented 4 years ago

yahhh..... ur not the only one..... The thing is I don't even use the webwindow and webwindow native packages I just import the webwindow nugget package and it was working until recently.... i think something happened with the webview2 library or with edge chromium....

If anyone could help it would be awsome

eivarin commented 4 years ago

further investigated on this and found this issue in the webview2 feedback repo on github here is the issue https://github.com/MicrosoftEdge/WebViewFeedback/issues/203

eivarin commented 4 years ago

ok based on my previous comment I also found out that the beta channel isn't up to date and doesn't have the webview2 runtime which is needed to run webwindow.... one solution is to uninstall every other build of edge chromium, even the stable one, and install the dev or the canary version.... I think that their main purpose with this change is to make the webview2 runtime downloadable and installable in the future so that the user doesn't have to install edge chromium in his PC.

@SteveSandersonMS this could pose as a problem in the future as the webview2 package on the webwindow native will need to be updated when the webview2 becomes installable separately from edge chromium..... I currently have a working PR (#81) to update the webview2 to version 0.9.430 but I think this wouldn't be enough. At this point the webview2 package is already at the 0.9.515-prerelease. I mean, we could wait for the official release of webview2.... after all, the latest version is a prerelease.

I'm talking for myself but I really think that that team which you mentioned in #86 could be built if you don't have the time to do it (but I don't know, now that blazor wasm is officially released I don't know if you will be here more often). This already has 37 issues and 17 PR so idk.

andtii commented 4 years ago

image I dont get any exception its just blank screen. im running the samples on windows 10 it works if i load it in the browser directly. @SteveSandersonMS any way we can fix this?

rex-pj commented 4 years ago

Hi @eivarin in my case, for the issue of the "WebWindow.Native", that cause by I want to fix the blank page error before then I try a lot of solutions even uninstall the "Microsoft Visual C++ 2015-2019 Redistributable (X64)" and after I re-install it, my app was working again.

I downloaded and installed "Microsoft Visual C++ 2015-2019 Redistributable (X64)" from here

https://aka.ms/vs/16/release/vc_redist.x64.exe

And the blank page error it also fixed temporarily by installing the Edge Chromium DEV version.

So:

eivarin commented 4 years ago

could you mention this on #50 please @delta-it??? I think that issue is helpful for newcomers to this repo and that info could be useful there...

wdcossey commented 4 years ago

I can confirm that you need Edge Chromium DEV from here to avoid the app crashing on startup.

Tested using VS 2019 16.6.3 and Edge 84.0.522.28