Xamarin Forms PCL SQLite is not working on WinPhone 8.1

jura1514jura1514 GBMember ✭✭
edited March 2017 in Xamarin.Forms

Hi All,

I was trying to configure SQLite.NET PCL for WinPhone 8.1 but all the time when I am trying to access data it is crashing.(don't have any errors during the build)

Before the crash during the debug mode it stops and brings me to this:

UnhandledException += (sender, e) =>
if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();

That my code:

    var sqliteFilename = "XamarinWMS.db3";
        string path = Path.Combine(ApplicationData.Current.LocalFolder.Path, sqliteFilename);
        var platform = new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT();
        var conn = new SQLite.Net.SQLiteConnection(platform, path);
        return conn;

Any ideas what I am doing wrong?

Thanks in advance!

Sign In or Register to comment.