Hello everyone,
I am using a SQLite database in a WPF windows application. After installing the windows application the database inside this folder like this.
static SQLiteConnection dbConnection = new SQLiteConnection(@"Data Source=C:\Program Files (x86)\hedronix\qScan\test.s3db;");
But when I am trying to access the database from this location of the windows application showing this error.
"attempt to write a readonly database\r\nattempt to write a readonly database”
How can I solve that?
In this situation, how can I set default connection string for accessing SQLite database after install this application on any local computer?


Amit GuptaRank #190 · 12.8K reputationPosted Nov 6, 2016, 8:09 AM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Nov 6, 2016, 7:22 AM EST
Make sure that your application that is installed has add/write/create/delete access to the folder where the sqlite database resides.
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Nov 6, 2016, 8:33 AM EST
Software Exibitation91 reputationPosted Apr 25, 2021, 11:59 AM EDT