Attempt To Write A Read-only Database - System.Data.SQLite
Solution 1:
Make sure that the anonymous web user account (NETWORK SERVICE or maybe something else) under which your web application executes has read/write/create/delete access to the folder where the sqlite database resides.
Solution 2:
The other answer give me an idea about the problem, but my solution was a bit differente. The problem was that the user did not have permissions to modify the folder and the .db file. So I give permission to the user Everyone (collective group for Authenticated Users and Guest). The permisions on NETWORK SERVICE (or similars) did not solve in my case.
Note: The IIS
must be restarted, after the change, to load the change made.
Solution 3:
ss----enter image description here
You should also do this. error for--->Unable to open the database file You must add a connection string.--"Version=3;Mode=ReadWrite;New=False;Compress=True;Journal Mode=Off;";
Post a Comment for "Attempt To Write A Read-only Database - System.Data.SQLite"