3

I am using System.Data.SQLite.Core version 1.0.115.5. I am attempting to create and open a SQLiteConnection as follows.

string DatabaseName = GetDatabasePath();
var sqlite2 = new SQLiteConnection($"Data Source={DatabaseName}");
sqlite2.Open();

GetDatabasePath is a function that returns the full path to the DB file.

I am getting the following exception.

System.IO.FileNotFoundException
  HResult=0x80070002
  Message=Could not load file or assembly 'System.Data.SQLite.SEE.License, Version=1.0.115.5, Culture=neutral, PublicKeyToken=433d9874d0bb98c5, processorArchitecture=MSIL'. The system cannot find the file specified.

Based on my research System.Data.SQLite.SEE.License is part of the SQLite Encryption Extension. It is used if you want to create a password for the database. Howevever, I am not using a password for the database. Why am I getting this error?

Benilda Key
  • 2,836
  • 1
  • 22
  • 34

0 Answers0