Open cuiliang opened 4 years ago
I've filed this as a bug internally, we'll take a look.
Does this repro without "TopMost" being set? Does this repro when running not elevated? I need to confirm, but I think we don't support running elevated.
@champnic
It will be ok without Topmost or Not elevated.
Sample program attached. \bin\x64\Release\WpfApp2.exe was code signed.
Copy \bin\x64\release to c:\program files\ it will report error.
I have a productivity software(link, Sorry only Chinese now, there are many gif demos on homepage) that is something like 'Shortcuts' on iOS, allow users define custom 'Actions' by 'Blocks' to interact with other softwares like this:
It need to be elavated to SendKeys / detect active window / SetForegroundWindow.
It also have UI blocks that allow users to input / select or do other interactions with 'Actions'.
I want to give users a WebView2 block, so that users can make html UI components or do some automation works. Html UI will be more flexable and powerful and give users much more possibility.
So Please Please support running on elevated process.
Is there any updates regarding above issue(Topmost and auto elevated set true=> webview2 page loading issue) ? I am also working on a task where the above scenario is applied.
No update on this one. Running as admin is slowly becoming more supported though, so I'm bumping the priority on this issue. Thanks!
I am also having similar problem where System.ArgumentException is raised if application have UiAccess enabled.
This exception was originally thrown at this call stack: System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(int) in Marshal.cs Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerAsync(System.IntPtr) Microsoft.Web.WebView2.Wpf.WebView2.EnsureCoreWebView2Async.__Init|0() Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.TryInitializeWebView2() Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.NavigateCore.AnonymousMethod__0() Microsoft.AspNetCore.Components.WebView.Wpf.WpfDispatcher.InvokeAsync(System.Func<System.Threading.Tasks.Task>)
Is there any solution for this ?
Is anyone actually ever going to be fixing those issues ? Its been 3 years since this was reported.
Its been three years guys.
four years
Description Condition:
Exception: Value is not in the expected range
code:
Version SDK: 0.9.628-prerelease Runtime: 87.0.637.0 Framework: WPF with .Net 4.6.2 OS: Windows 10 2004(19041.450) , Windows 10 1909
Repro Steps
Screenshots
Additional context
AB#29614042