MicrosoftEdge / MicrosoftEdge/WebView2Feedback
run WebView2 from administrator privileges process (consent.exe)
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
When trying to run WebView2 from administrator privileges process (consent.exe) I get a blank page. the CoreWebView2InitializationCompletedEventArgs that I get contain the following exception and stack trace:
System.ArgumentException: Value does not fall within the expected range.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Web.WebView2.WinForms.WebView2.d__18.MoveNext()
when I run the same code from explorer.exe process or LogonUI.exe the Initialization Completed fine without exception and the page is present.
Microsoft.Web.WebView2 1.0.992.28
Windows 10
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 by reproducing the WebView2 initialization through CoreWebView2InitializationCompleted and the CreateCoreWebView2ControllerAsync call in consent.exe, then compare it with explorer.exe and LogonUI.exe. Done means the administrator-privileges process initializes successfully and displays the page without the reported ArgumentException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100