System.Data.SQLite BackupDatabase() throws “not an error”
I'm using System.Data.SQLite (version 1.0.85.0) to connect with my SQLite database. I want to create backup of the database using SQLiteConnection.BackupDatabase() method, however it throws SQLiteException with message:"not an error" (repeated twice). Here is some code: SQLiteConnection cnnIn = new SQLiteConnection("Data Source=test.db;foreign keys=True"); SQLiteConnection cnnOut = new SQLiteConnection("Data Source=backup.db;foreign keys=True"); cnnIn.Open(); cnnOut.Open(); cnnIn.BackupDatabase(cnnOut, "backup", "test", -1, null, -1); cnnIn.Close(); cnnOut.Close(); The error comes from System