I'm trying access a SQLite database from my Windows Phone 8 app but am encountering the following error whenever SQLite code is hit:
{System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD)
at Sqlite.Sqlite3.sqlite3_open_v2(String filename, Database& db, Int32 flags, String zVfs)
at SQLite.SQLite3.Open(String filename, Database& db, Int32 flags, IntPtr zVfs)
at SQLite.SQLiteConnection..ctor(String databasePath, SQLiteOpenFlags openFlags, Boolean storeDateTimeAsTicks)
at TopoMap.Map.MapTileServer.<Initialise>d__0.MoveNext()}
- I've installed the Visual Studio extension SQLite for Windows Phone (v3.8.4.3).
- I've installed the sqlite-net-wp8 NuGet package (v3.8.4.3).
- I've added SQLite.cs and SQLiteAsync.cs to my project.
- I've added the USE_WP8_NATIVE_SQLITE conditional compilation symbol to my project.
The project runs fine with no issues until a line of code is hit that accesses the underlying Sqlite3 class.
Any ideas what the issue might be?