Answer the question
In order to leave comments, you need to log in
Why is an exception thrown when trying to declare a SQLiteConnection?
It crashes on the line marked with a comment, the file is being created, the path is correct, many extensions have been tried (*.sqlite, *.db, *db3, etc.).
Here is the code:
if (File.Exists(savepath))
{
File.Delete(savepath);
}
SQLiteConnection.CreateFile(savepath);
SQLiteConnection connection = new SQLiteConnection(); //исключение
connection.ConnectionString = (String.Format("Data Source = {0}; Vesion = 3;",savepath));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question