-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webview2 cannot be created when a WinUI3.0 desktop app is built as partialTrust #7982
Comments
Maybe this #7190 is related? Still interested to know if this should or can work. |
I want to go through certification on the Microsoft Store and still need to add So still wondering if there's a way to use a Webview2 when the app is |
This is the stack trace. Apparently 'Window creation request failed.' exception being thrown.
|
Noticed I was using Canary version of Webview2 runtime but same thing happening with Stable Release version. Runtime is loaded from a different folder, same error tough.
|
Not only when set to PartialTrust, but also if making the app single instance. |
@koenvd , we currently do not have a plan to address this issue in the near future. |
Also facing the same issue with MAUI blazor hybrid on .NET 8, it renders a blank page when using partial trust. |
Facing the same issue as well; |
Any update on that? @chigy I hope this was a joke that you won't address this issue. |
@chigy Any update? @dahlita @orosbogdan did you find a workaround? |
Describe the bug
This issue is probably on the border between WinUI3.0 and WindowsAppSDK but creating it here since it's related to how the app is being built.
I was trying to move away from running a win32 WinUI 3.0 desktop app full trust to running it partial trust as explained here https://nicksnettravels.builttoroam.com/windows-ui-as-partial-trust/
The app can be successfully built but upon running I can no longer create an instance of a Webview2 control.
I kind of get that this exception is probably expected since the app probably has to load dll"s from outside it's container to be able to instantiate a Webview2 control.
However still logging this since:
Steps to reproduce the bug
Run the app and notice an exception being thrown.
Expected behavior
Ideally no exception should be thrown, or a dedicated capability is introduced to still allow to create a Webview2 control when the app is partial trusted.
Screenshots
No response
NuGet package version
Windows App SDK 1.2.1: 1.2.221116.1
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: