public SQLiteConnection GetConnection()
{
var sqliteFilename = "Member.sqlite";
string path = Path.Combine(ApplicationData.Current.LocalFolder.Path, sqliteFilename);
var conn = new SQLite.SQLiteConnection(path,true);
return conn;
}
above is my Code in UWP
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'SQLite.SQLiteConnection' threw an exception.
Source=SQLite-net
StackTrace:
at SQLite.SQLiteConnection..ctor(String databasePath, Boolean storeDateTimeAsTicks)
at EReader.UWP.FileHelperImplementation.FileHelperImplementation.GetConnection() in E:\VinodkumarP\EReader\trunk\src\source\mobile\EReader\EReader.UWP\FileHelperImplementation\FileHelperImplementation.cs:line 63
at EReader.Domain.DbRepository.DbBaseRepository`1..ctor() in E:\VinodkumarP\EReader\trunk\src\source\mobile\EReader\Domain\DbRepository\DbBaseRepository.cs:line 20
at EReader.Domain.DbRepository.DbUserRepository..ctor() in E:\VinodkumarP\EReader\trunk\src\source\mobile\EReader\Domain\DbRepository\DbUserRepository.cs:line 6
at EReader.ViewModel.LoginViewModel..ctor()
at EReader.LoginPage..ctor()
at EReader.App..ctor()
at EReader.UWP.MainPage..ctor() in E:\VinodkumarP\EReader\trunk\src\source\mobile\EReader\EReader.UWP\MainPage.xaml.cs:line 24
at EReader.UWP.EReader_UWP_XamlTypeInfo.XamlTypeInfoProvider.Activate_4_MainPage() in E:\VinodkumarP\EReader\trunk\src\source\mobile\EReader\EReader.UWP\obj\x86\Debug\XamlTypeInfo.g.cs:line 255
at EReader.UWP.EReader_UWP_XamlTypeInfo.XamlUserType.ActivateInstance() in E:\VinodkumarP\EReader\trunk\src\source\mobile\EReader\EReader.UWP\obj\x86\Debug\XamlTypeInfo.g.cs:line 480
Inner Exception 1:
TypeLoadException: Method 'sqlite3_blob_open' in type 'SQLitePCL.SQLite3Provider_e_sqlite3' from assembly 'SQLitePCLRaw.provider.e_sqlite3, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9c301db686d0bd12' does not have an implementation.