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

TypeLoadException when I try to get a SQLite connection from Windows Phone 8

$
0
0

Hello,

I'm currently developping a Windows Phone application with Xamarin.Forms.
To do that, I need to use a SQLite database in order to have a cross-platform application with Android and iOS.

So i followed the steps described in the following document : Working with a local database using SQLite.Net with Xamarin.Forms

The thing is I'm getting an error when I try to get a SQLite connection on Windows Phone 8 with the following code :

var plat = new SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8();

The call of this method throws a TypeLoadException with this message :

[System.TypeLoadException] = {System.TypeLoadException: Method 'ExtendedErrCode' in type 
'SQLite.Net.Platform.WindowsPhone8.SQLiteApiWP8' from assembly
'SQLite.Net.Platform.WindowsPhone8, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null'
does not have an implementation.
at SQL...

I have no idea for the reason why I'm getting such an error. If you have any idea, it would be great !

Thank you in advance to any one who may be able to help me


Viewing all articles
Browse latest Browse all 58056

Trending Articles