Microsoft.Toolkit.Win32 icon indicating copy to clipboard operation
Microsoft.Toolkit.Win32 copied to clipboard

WebView control - cannot find Uri address or not loading HTML at all

Open sekulicb opened this issue 5 years ago • 2 comments

I'm submitting a bug

Hi. I just created WPF project, set it to .net 4.7.1. WebView is added to the xaml like this:

webview bug - ui

Source property is set to Bing landing page. When I run the project, I can see that NavigationStarting is called. Few seconds later NavigationCompleted is called with IsSucess set to false. Looks like WebView cannot find Bing main page.

webview bug

Environment

Visual Studio Community 2017 Version 15.9.7 Windows 10 Version 1809 (build 17763.316)

Nuget Package(s): I used Microsoft.Toolkit.Wpf.UI.Controls.WebView 5.1.0 And then 6.0.0-preview1 but the result is the same. Currently I have preview version Package Version(s):

Device form factor:

  • [ ] Desktop

Visual Studio

  • [ ] 2017 (version: 15.9.7)

I also have another WPF project that uses IoC, MaterialDesingInXaml as UI toolkit, and when I bind Source property to ViewModel, I get nothing, just white page. No content at all. Also I noticed a big drop in performance. When I click the button to open WebView control, application becomes slow and lags significantly. If I place WebView control in separate window, and then call Navigate(uri) when constructor of that window is called, window is never show.

I tried running both apps without admin privileges, double checked manifest file, set width and height, tried with plain string as address instead of Uri type, downloaded preview package, but no changes at all. I just don't know what to do anymore.

Thanks.

sekulicb avatar Feb 28 '19 16:02 sekulicb

These are Events from Event Viewer:

Faulting application name: Win32WebViewHost.exe, version: 10.0.17763.1, time stamp: 0xb4ca2968 Faulting module name: edgemanager.dll, version: 11.0.17763.316, time stamp: 0x96d50138 Exception code: 0xc0000409 Fault offset: 0x0000000000018448 Faulting process id: 0x5b2c Faulting application start time: 0x01d4cf64600e0283 Faulting application path: C:\Windows\SystemApps\Microsoft.Win32WebViewHost_cw5n1h2txyewy\Win32WebViewHost.exe Faulting module path: C:\WINDOWS\SYSTEM32\edgemanager.dll Report Id: 1ec8d5da-f527-4512-a22d-d99b22984ba2 Faulting package full name: Microsoft.Win32WebViewHost_10.0.17763.1_neutral_neutral_cw5n1h2txyewy Faulting package-relative application ID: DPI.PerMonitorAware

Faulting application name: wwahost.exe, version: 10.0.17763.1, time stamp: 0xce9365c3 Faulting module name: wwahost.exe, version: 10.0.17763.1, time stamp: 0xce9365c3 Exception code: 0xc0000409 Fault offset: 0x000000000008a1ed Faulting process id: 0x30d8 Faulting application start time: 0x01d4cf6460229b15 Faulting application path: C:\Windows\System32\wwahost.exe Faulting module path: C:\Windows\System32\wwahost.exe Report Id: 50dfc49a-963c-47cb-a43c-990ad1c507eb Faulting package full name: Microsoft.Win32WebViewHost_10.0.17763.1_neutral_neutral_cw5n1h2txyewy Faulting package-relative application ID: DPI.PerMonitorAware

This is related to second app. Hope it provides a little bit more info. Thanks.

sekulicb avatar Mar 01 '19 14:03 sekulicb

I got this exact error event when running as administrator. See issue 3285.

znakeeye avatar May 14 '20 15:05 znakeeye