Skip to Content
avatar image
Former Member

Why is Access Denied on UltraLite 17 Db with UWP

I have a VS 2017 UWP app with UltraLite 17 that is denied access (-82) to an UltraLite 17 database that can be accessed via SQL Central 17 and a 2017 .NET app using UltraLite.Net. The latter two use the same connection parameters as the denied UWP application in connecting to the UltraLite 17 db.

I am running the UWP app in the 2017 debugger in "Local Machine" and "Simulator"

The UWP app accesses another file with no problem. Both methodologies (file access and "dbf=" ) use fully qualified paths so I don't believe it's a file system issue.
Thanks ahead of time.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 12, 2017 at 07:22 PM

    UWP can only access certain file locations by default. If the database is stored in a location other than those allowed locations, you will encounter this error.

    See https://docs.microsoft.com/en-us/windows/uwp/files/file-access-permissions#accessing-additional-locations

    Add comment
    10|10000 characters needed characters exceeded