Hello. I'm using this provider in my project, and first of all want to say a biggest thanks for your job!! Really cool.
So, I have a trouble - exception with message "Attempting to write read-only database"
in System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
in System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
in System.Data.SQLite.SQLiteDataReader.NextResult()
in System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
in System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
in System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
in System.Data.SQLite.SQLiteTransaction..ctor(SQLiteConnection connection, Boolean deferredLock)
in System.Data.SQLite.SQLiteConnection.BeginDbTransaction(IsolationLevel isolationLevel)
in System.Data.SQLite.SQLiteConnection.BeginTransaction(IsolationLevel isolationLevel)
I'm not use a threads, all transactions going logically. My connection string is "Data Source=\"{0}\"; FailIfMissing=false; Synchronous=Full;"
This error happens very rarely.
I have a databases on different logical disks, and strange thing happen - one database works properly, but db on another disk throws many times often. I'm went to windows defrag tool, and found that first file is normal, but second is highly fragmented, about 7000 chunks on 9Mb database file! Can it cause this error?
May be it's journal-related, and I have to disable it?
Thanks in advice!