question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WinUI 3.0: Why UWP project is asking for MS Edge for Business for WebView2?

See original GitHub issue

When I use WebView2 control in a UWP project with WinUI 3.0 and run the app, the webpage inside WebView2 control is not displayed. Instead, the app displays the following message that takes me to Microsoft Edge for Business download page:

a suitable version of Microsoft edge was not detected. Please install the latest beta channel build from here

Question: Why it’s asking for Microsoft Edge for Business? I already have the latest version of MS Edge Canary Channel and the latest release version MS Edge installed on my Windows 10 - Pro. I don’t want to install too many versions.

MainPage.xaml:

<Page
  x:Class="UWP_WinUI.MainPage"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="using:UWP_WinUI"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
        <WebView2 x:Name="wvTest" Grid.Row="1" Source="https://www.bing.com/"/>
    </Grid>
</Page>

Display of the app

The webpage is supposed to display in the WebVeiw2 below the button control. But instead, the message (shown below) is displayed:

enter image description here

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
StephenLPeterscommented, Jul 13, 2020

Lets leave this open to track the changing of the link.

0reactions
saf-itprocommented, Jul 18, 2020

@codendone Thank you for having the issue fixed. Hopefully in the next preview it would not be confusing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WinUI 3.0 - Why UWP project is asking for MS Edge ...
When I use WebView2 control in a UWP project with WinUI 3.0 and run the app, the webpage inside WebView2 control is not...
Read more >
Get started with WebView2 in WinUI 2 (UWP) apps
Create an initial WinUI 2 (UWP) app. Install the Microsoft.UI.Xaml package (WinUI 2) for the project. Add a WebView2 control that displays ...
Read more >
Get started with WebView2 in WinUI 3 (Windows App SDK) ...
In this tutorial, you use the Blank App, Packaged (WinUI in Desktop) Visual Studio project template to create a blank WinUI 3 project....
Read more >
WebView2 is now Generally Available for WinUI 2 (UWP) apps
WebView2 is now Generally Available for WinUI 2 (UWP) apps. Written By. Microsoft Edge Team. published September 13, 2022.
Read more >
The importance of having native apps on Windows. ...
Existing built in native UWP apps will be ported to WinUI 3 or WebView 2, and they are both trash. Upvote 1
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found