I want to connect my application with sqlite database but it throw the exception.
An exception of type 'System.BadImageFormatException' occurred in Scrap_Book.Windows.exe but was not handled in user code
Additional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
var dbpath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "scrapbook.sqlite");
using (var db = new SQLite.SQLiteConnection(dbpath))
Second line throw exception.
I am unable to resolve it. please help me i am new in programming. Thanks in advance.