-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Windows 11 Update KB5040527 breaks app startup #23963
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
Just wanted to add that I am running into this exact issue as well. I never ran my app on Windows, it is primarily for mobile but was curious to see if it would work on Windows. When I attempt to run the app for windows it gives a window but immediately displays the error. |
It looks like that release is OS Builds 22621.3958 and 22631.3958 I'm running And haven't seen any issues launching windows. Can you run a Maybe it's something specific with your app? |
When I create a blank project it works. It's weird, I'm using the same versions. But ofc I have some additional libraries. Will check if any of them cause this problem because it still exists. It also started breaking without any changes to my code. When I revert the update I mentioned, it works perfectly fine. |
I'm a step further now. In my project I set the MainPage = new NavigationPage(new MainPage()); When I revert to using the AppShell the App no longer crashes. I don't know why. I will try to get around my problems with the AppShell instead of just using Edit: |
Okay, I fixed the error by deleting the App's data folder under |
I have the same problem, all solutions proposed doesn't work |
Description
Hey there,
I just installed Windows 11 Update KB5040527 and cannot run my .NET MAUI Application from VS2022 anymore. I get the following error without changing any code:
This element does not have a XamlRoot. Either set the XamlRoot property or add the element to a tree."} System.ArgumentException
The app (Windows, x64) flashes for a second and then throws this exception. After reverting the update, everything runs fine again.
VS2022 updated to latest version. Before that update, the app worked totally fine.
If u need anything which can help to hunt that error down, just ask.
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
8.0.61 SR6.1
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 11 Enterprise
Did you find any workaround?
Revert update KB5040527
Relevant log output
The text was updated successfully, but these errors were encountered: