Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLite for Windows Runtime is returning an "ReadOnly" error SQLiteException object

SQLite for Windows Runtime is returning an "ReadOnly" error SQLiteException object while inserting a new record in my SQLite database.

I am not sure what's causing it but this "ReadOnly" error is what I got enter image description here

I tried to update the database security and even lamely added "Everyone" to make sure but I still get that error. Any idea why?

like image 200
Jayson Ragasa Avatar asked Oct 04 '22 09:10

Jayson Ragasa


1 Answers

Application files cannot be changed, hence the "Read-Only" error you are seeing. You are correct instead to copy the file to the LocalFolder, where the application will have full read-write access.

If you need to populate your db with data initially, you can do this either prior to adding the file to the project in Visual Studio, or after the db is in the LocalFolder.

like image 151
chue x Avatar answered Oct 13 '22 11:10

chue x