Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

SQLite Throw Exception

$
0
0

Hi,
I want to create an internal librairy for my project and I followed this tutorial.

On Android and IOS it works but on windows phone 8.1 it throw an exception on this part of the code:

var conn = new SQLite.SQLiteConnection(path);

Exception:
{"Something went wrong in the build configuration. This is the bait assembly, which is for referencing by portable libraries, and should never end up part of the app. Reference the appropriate platform assembly instead."}

Source : "SQLitePCL.raw"

Stack Trace: " at SQLitePCL.SQLite3Provider.SQLitePCL.ISQLite3Provider.sqlite3_open_v2(String filename, IntPtr& db, Int32 flags, String vfs)
at SQLitePCL.raw.sqlite3_open_v2(String filename, sqlite3& db, Int32 flags, String vfs)
at SQLite.SQLiteConnection..ctor(String databasePath, SQLiteOpenFlags openFlags, Boolean storeDateTimeAsTicks)
at SQLite.SQLiteConnection..ctor(String databasePath, Boolean storeDateTimeAsTicks)
at WindowsPhone.SQLite_WinPhone.GetConnection()
at Common.VolunteerDatabase..ctor()
at Common.App..ctor()
at WindowsPhone.MainPage..ctor()
at WindowsPhone.WindowsPhone_XamlTypeInfo.XamlTypeInfoProvider.Activate_4_MainPage()
at WindowsPhone.WindowsPhone_XamlTypeInfo.XamlUserType.ActivateInstance()"

Enventhough I added Microsoft Visual C++ 2013 Runtime Package for Windows Phone and SQLite for WindowsPhone 8.1 I still get this error...

Do you have any idea How i could solved this?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>