Replies: 1 comment 1 reply
-
I think I found my answer. This is a really old bug where File Dialog will not work with admin permissions. Need to rethink using MAUI for this project. I REALLY wish someone would update the documentation just to say this is known issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using a file picker in my Maui project. I have tried to figure out the cause but can't seem to figure it out. I have created small test projects to test the issue in isolation and it seems to work fine. I have used the same code in both the regular application and the test applications.
Here is my UI. Click browse produces the error listed on the bottom.

the button leads to this code block:

that leads to this code block:

I keep thinking that maybe it has something to do with not using the packaging and having
<WindowsPackageType>None</WindowsPackageType>
in my project file.
From the stack trace it seems to be throwing in the filepicker code and not necessarily my code. I would appreciate any tips to get this to work. I have though about trying to call the native filepicker in another way but haven't been able to figure out how to do that either.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions