When using a 64-bit program System.Data.SQLite is throwing the following EntryPointNotFoundException:
Unable to find an entry point named \'sqlite3_ch
I had the same issue when I used GMAP.NET
, which appeared to be opening an SQLite connection using an older version. Then, when I attempted to open a connection with the newer version, the error with SQLite.Interop.dll
occurred.
By opening a dummy connection with the newer version before instantiating the GMAP.NET
object using the older connection, the error went away. The connection doesn't have to do anything, it just has to be opened first.
using (SQLiteConnection con = new SQLiteConnection("Data Source=" + dat + ";Version=3;"))
{
con.Open();
}