c# - sqlite3 database System.BadImageFormatException in windows8.1 -


i have been trying 2 days sql server 2012 run metro style when discovered metro style doesn't support database client. switched on sqlite3 database. have created classes each database.but when try create db code

private async void createdatabase()     {         sqliteasyncconnection conn = new sqliteasyncconnection("people");         await conn.createtableasync<users>();           await conn.createtableasync<groups>();     } 

the following errors occur

an exception of type 'system.badimageformatexception' occurred in eduhaptics.exe not handled in user code

additional information: attempt made load program incorrect format. (exception hresult: 0x8007000b) in line

sqlite3.setdirectory(/*temp directory type*/2, windows.storage.applicationdata.current.temporaryfolder.path); 

and same error @ line

await conn.createtableasync<users>();  

tried insert path manually after acquired it, same problems occur. navigated location exist empty folder. have clue might not reading path because of string don't know do!! please programming in visual studio 2013 64-bit environment , acquired sqlite-winrt81-3080401 version.

for reason it's working if set project target platform x64


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -