Hello,
Welcome to Microsoft Q&A!
The broadFileSystemAccess capability only works for the Windows.Storage APIs. But the SqliteConnection
is not using Storage API to open the db file. It is still using win32 or .net APIs to open files via path. This is not allowed in UWP apps. So you can't open the DB file just like this.
You could try to get the DB file first by using Windows.Storage APIs and broadFileSystemAccess capability. Then you could copy the file into your app's local folder or installation folder. The SqliteConnection
should work correctly when trying access the file in these two places.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.