Closed markjulmar closed 9 years ago
Here's a sample project which has the issue, perhaps I'm missing some reference or extension library in the Windows Phone project, but I could swear this used to work just fine..
All instances of this error have been caused by a missing extension SDK. So far. :-)
Have you by chance switched to Visual Studio 2015? I've heard somebody say that there is another extension SDK needed. You need the Visual C++ runtime (which I think you already know), but you also need another one, and I forget the exact name. I think it had the words ".NET Native" in it.
I am on VS2015 -- let me give that a shot!
Works once you add the proper extension SDKs -- thanks Eric!
So, which is the name of the missing extension? How you've solved the problem?
I don't have the exact name handy. It's probably the Visual C++ 2013 Runtime, or something like that.
Hello.
I'm having what look like the same problem. Even after i added the Visual C++ 2013 Runtime, but still same error
My code look like this
var sqliteFilename = "MySQLite.db3";
string path = Path.Combine(ApplicationData.Current.LocalFolder.Path, sqliteFilename);
var conn = new SQLite.SQLiteConnection(sqliteFilename );
Exception thrown: 'System.IO.FileNotFoundException' in SQLitePCL.raw.ni.DLL
can anyone see if i been doing something wrong?
Just a stab in the dark: One other user reported the need to add another extension SDK, something with the word "native" in the name.
are you talking about this? https://github.com/ericsink/SQLitePCL.raw/issues/44#issuecomment-149568758
doesn't seems to be possible to add to a windows phone 8.1 project. so not sure what to do
Yeah, you're right, that seems unrelated.
Just to be sure: Is SQLite itself being added to your project?
Like, in your output build directory, there should be a sqlite3.dll somewhere. For some platforms, it is provided by SQLitePCL.raw. In some cases that is controlled by the MSBuild property UseSQLiteFrom
. (I'm not sure about this, as I am having trouble remembering details about SQLitePCL.raw for the Win81 SL platform). If it is not coming from SQLitePCL.raw, you have to add the SQLite extension SDK.
Fails when trying to create the database with SQLite-net.PCL, here's the stack trace:
Same code works fine with Xamarin.iOS and Xamarin.Android.