MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Teams screen sharing - WebView2 Sample App stopped working all of a sudden
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Description
Last Friday I cloned the WebView2 Sample repository and downloaded the Edge Canary version. Launching the WPF example with Visual Studio 2019 and everything worked fine.
This morning I tried it again and the default webpage was not displayed, even after waiting multiple minutes. Clicking the 'Go' Button yields an Exception:
System.Runtime.InteropServices.COMException: 'The group or resource is not in the correct state to perform the requested operation. (0x8007139F)'
This happens in MainWindow.xaml.cs@221: await webView.EnsureCoreWebView2Async();
I verified that I'm still on the latest version for both the SDK and the Runtime and reinstalled both multiple times, but with no success (I also restarted my PC twice). Just now I tried it with a colleague (whom had not previously used either the SDK or the Canary Runtime) and it worked just fine. I'm not sure what could be causing this. Hope you can help me out! :)
Version
SDK: 1.0.674-prerelease
Runtime: Canary 88.0.685.0
Framework: WPF
OS: Win10 2004 - OS Build: 10.0.19041
Repro Steps
Launching the sample application (detailed above)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the WPF sample's MainWindow.xaml.cs at line 221, where EnsureCoreWebView2Async() throws 0x8007139F. Reproduce the failure using SDK 1.0.674-prerelease, Edge Canary 88.0.685.0, Visual Studio 2019, and Windows 10 build 19041; done means the default page loads and clicking Go no longer raises the exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100