Questions tagged [webview2]

Use the tag for the questions about Microsoft Edge WebView2 control. For current issues check https://github.com/MicrosoftEdge/WebView2Feedback/issues

Microsoft Edge WebView2 control uses Microsoft Edge (Chromium) as the rendering engine.

It can be used in Win32 C++ or .NET (WPF or WinForms) and WinUI 3 applications.

For further information, see the WebView2 documentation or the WebView2 feedback project for bugs and feature requests.

727 questions
5
votes
1 answer

WinForms Microsoft.Web.WebView2 Navigate, Page Fully Loaded

I am trying execute a method after the action this.webViewBrowser.CoreWebView2.Navigate(url). As of yet are failing as the page is not fully load and dynamic scripts executed. The Microsoft.Web.WebView2 Nuget package is v1.0.781-prerelease.
nenwmn
  • 89
  • 1
  • 1
  • 5
5
votes
2 answers

Disable Devtools in Microsoft.Web.WebView2.Wpf component

I want to disable devtools from Webview2 component in wpf application .net5. Please help me how to do it?
Min
  • 85
  • 1
  • 9
5
votes
1 answer

Setting an object from .NET to JavaScript code through WebView2

Thanks in advance, I want to set an object to the java script code which is contained within a WebPage. I am displaying this Web page in the WPF window that references the WebView2 with Name as 'webView'. I am pretty new to WebView2 and I am not…
DotNetSpartan
  • 931
  • 4
  • 20
  • 41
4
votes
1 answer

WebView2 works in debug but not when published with ClickOnce

I have published a C# WPF MVVM(Caliburn Micro) application locally and am having the following Event Viewer message when I try to display a web page using WebView2. The web page shows fine in debug. Description: The process was terminated due to an…
Formant
  • 113
  • 8
4
votes
1 answer

WebView2 Environment Exception (Requested resource is in use)

I get the following exception when the WebView2 application is launched by more than one user on the server: "Requested resource is in use.(Exception from HRESULT: 0x800700AA)" The user that launched the application first can still open multiple…
Zimo
  • 312
  • 5
  • 21
4
votes
0 answers

WebView2 WPF Google log in

Easy question, not sure if there is a solution for this problem. I made a simple browser with WebView2 in a WPF C# app (I made this to be able to use a shell app while I browse on the url where the webview is). It use the same useragent as…
LiefLayer
  • 977
  • 1
  • 12
  • 29
4
votes
1 answer

Cancel request for web resource in WebView2

I am developing an email application where I would like to display mail messages in WebView2. I would like to give a choice to the users to download or not remote resources in Html mail messages(for security reasons). How can I cancel requested…
ekalchev
  • 762
  • 7
  • 24
4
votes
2 answers

WebView2 - Call/Execute Javascript Functions

The InvokeScript method was deprecated in WebView2 so I am trying to learn the new alternative. According to the Microsft documentation, we have to call the ExecuteScriptAsync method in order to run a script. I was able to create an async method…
Zimo
  • 312
  • 5
  • 21
4
votes
1 answer

Parallel using of WebView2 in async Task

I have simple default Windows desktop form Form1 with one button btn_Go as a test. I want to run multiple parallel WebView2 instances and process html code from rendered page. To run WebView2 in parallel I use SemaphoreSlim (set to parallel 2).…
Atiris
  • 2,613
  • 2
  • 28
  • 42
4
votes
1 answer

Upload files to a webpage with WebView2

I would like to build a hybrid app which targets a single website. The app would allow for the automation of certain tasks by injecting java script into the webpage. I do not have any influence over the development of the webpage. In the automation…
darbid
  • 2,545
  • 23
  • 55
4
votes
1 answer

How to login to multiple account at same time with Microsoft WebView2

I have create an application with a webview2 control and run it and do login with user A to my website, then run my application again without closing the previous instance and do login with user B on same website, then the login is successful. And…
xxi123
  • 61
  • 6
4
votes
1 answer

Exception while initializing EnsureCoreWebView2Async(null) in WebView2

I am integrating Browser into my software. It is working when I keep on opening new browser tabs but as soon as I close one tab and try to open new one it produces an exception in following code. public async Task InitCore() { try { …
Wackie
  • 77
  • 2
  • 9
4
votes
3 answers

How to disable CORS in WPF WebView2

I'm developing an app that displays WebView2 using .Net5/WPF. I want to disable CORS. I have installed Chromium Edge Canary 86.0.607.0. In Edge, CORS could be disabled by adding the following argument to the shortcut. --disable-web-security…
user5081698
4
votes
3 answers

Microsoft Edge WebView2 - Error: The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

I'm working on this official tutorial: Getting started with WebView2 in WPF (Preview). Have installed Microsoft Edge (Chromium) Canary channel on my Windows 10 pro -ver 1903. Have created a .NET Core 3.1 - WPF project on latest version VS2019 -…
nam
  • 21,967
  • 37
  • 158
  • 332
4
votes
1 answer

How would I call WebView2 and other modern winmd features in VBA

I would like to embed a modern WebView2 component (Edge Chromium Browser Control) inside an old-style VBA UserForm. I surmise that I would need the following installed on the system: Edge Chromium Broswer Webview2 SDK While I have the Edge…
Sam
  • 2,745
  • 3
  • 20
  • 42
1 2
3
48 49