Getting WinRT Errors when using WebView2 in WinAppSdk 1.0.0 application #2166
Unanswered
sharpninja
asked this question in
Q&A
Replies: 1 comment
-
hello @sharpninja Are you still looking for an answer to your question? If you still need a response, we can turn this into an Issue with a Question tag (which is typically how we address questions and bugs. The discussion thread might be more useful for off topic questions or non-issue related inquiries! Let me know if you'd like me to create an issue from this discussion, or if you'd prefer to add it. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure if the problem is me or a bug in WebView2. I am not starting the app via the canonical method. I am using the Microsoft.Extensions.Hosting model via this project: https://github.com/sharpninja/WindowsAppSdkHost
Program.cs looks like this:
As you can see, the UI is mostly served from the DI container.
As you can see, I do not get the WebViewWrapper control from DI, but let the Xaml parser handle it like normal. If I comment out the
WebView2
, I don't get the errors.Beta Was this translation helpful? Give feedback.
All reactions