CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.
https://aka.ms/windowsappsdk
Other
383 stars 89 forks source link

Webview 5.11/6.0 presenting blank window from local and intranet site, C# WPF #244

Open wavestone2 opened 4 years ago

wavestone2 commented 4 years ago

I'm trying to set a very simple WPF application that will only pull a local HTML page that is a live and functioning as expected, hosted in our work place. we have no internet connection within the LAN.

I added succesfully WebView 5.11 (also tried 6.0 with same results) and added the following code: <WPF:WebView Source="https://localSiteAddress" x:Name="wv" IsPrivateNetworkClientServerCapabilityEnabled="true"/>

this results in a blank page. I was triyng to do the same through the code CS file and I added the following code:

private void Grid_Loaded(object sender, RoutedEventArgs e) { var wv = new WebView(); wv.IsPrivateNetworkClientServerCapabilityEnabled = true; wv.Source = new Uri("https://localSiteAddress"); grid.Children.Add(wv); wv.BringIntoView(); }

same behavior

I was trying to access multiple local intranet websites with the same result. Note: when i use an external PC with Internet connection i manage to access websites

I was trying the resulutions presented at the following link https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/2226 No resoolution yet ...

Anyone pelase help :) any suggestion will be so welcome :)

Thanks

ghost commented 4 years ago

Hello wavestone2, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

Kyaa-dost commented 4 years ago

@wavestone2 what VS version are you using?

Adding WebView team here @pagoe-msft

ghost commented 4 years ago

Hello wavestone2, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

wavestone2 commented 4 years ago

Hello Kaya,

I Installed 5.11 and 6.0 (not at the same time), same behavior in both cases