Skip to content

[Problem/Bug]: WebView2 Initializes fine with default url but not navigating to new url #5186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
soojungk417 opened this issue Mar 31, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@soojungk417
Copy link

What happened?

Hi, I have a WPF tool that uses webview2 to load a url, but I found that it works on someone's computer and doesn't work on another.
These are some facts:

  • I'm using WebView2 134.0.3124.93 and I confirmed this is installed on those computers that won't work.
  • Confirmed the default url I added as Source of wpf shows up and it says WebView is initialized(they both show value from Environment.BrowserVersionString), but it doesn't navigate to the new url that gets fed after initialized.
  • Confirmed it's not related to Windows 10 vs 11.

What could be a potential reason?

Thanks!

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

134.0.3124.93

SDK Version

1.0.3124.44

Framework

WPF

Operating System

Windows 10

OS Version

No response

Repro steps

MainWindow.xaml has this
<wpf:WebView2 x:Name="webView" HorizontalAlignment="Stretch" Source="https://www.microsoft.com"/>

In MainWIndow.xaml.cs, it adds source url, which has correct value.
webView.Source = new Uri(_url);

Problem is this only happens on a couple of computers and can't seem to find what the common issue is between those computers.

Repros in Edge Browser

Yes, issue can be reproduced in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

@soojungk417 soojungk417 added the bug Something isn't working label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants