I added what I thought were the necessary SQLite (and sqlite-net) packages to my app. On running it, though, I get an exception:
System.DllNotFoundException was unhandled by user code HResult=-2146233052 Message=Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from
I have the following SQLite packages installed:
What is missing?
UPDATE
I tried ajawad987's suggestion, but still get the same runtime error, even though I've got this:
...and this:
UPDATE 2
Where this runtime exception takes place (in SQLite.cs) seems odd to me:
if SILVERLIGHT || USE_CSHARP_SQLITE
var r = SQLite3.Open (databasePath, out handle, (int)openFlags, IntPtr.Zero);
else
// open using the byte[]
// in the case where the path may include Unicode
// force open to using UTF-8 using sqlite3_open_v2
var databasePathAsBytes = GetNullTerminatedUtf8 (DatabasePath);
var r = SQLite3.Open (databasePathAsBytes, out handle, (int) openFlags, IntPtr.Zero);
endif
But I am using C#, so why is the line that's failing even running? (it fails in the "else" block)?