Replies: 1 comment
-
Can someone be assigned to this issue? |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
LocalSettings throws an UnauthorizedAccessException after AppInstance.Restart.
How can I fix this?
Steps to reproduce:
Using Windows 10 and Windows App SDK, create a WinUI 3 desktop application using the template.
Change MainWindow.xaml to contain this:
Change MainWindow.xaml.cs to contain this:
Run the app. Click on the Get and Set buttons, observe it works.
Then click on Restart. After the application restart, clicking on Get or Set results in UnauthorizedAccessException.
Expected: should be able to access LocalSettings after a restart.
Beta Was this translation helpful? Give feedback.
All reactions