c# - Unable to load DLL 'sqlite3' in SQLite Net Platform WinRT -


i in process of developing native app using xamarin.forms. problem facing not related xamarin. added new windows phone project

right-click > add > new project -> windows phone apps -> blank app(windows phone).

in existing xamarin project in visual studio premium 2013. using sqlitenet pcl database connection. have below code in project.

public isqliteplatform createsqliteplatforminterface()         {             return new sqliteplatformwinrt();         } 

when executes above line, throws exception

an exception of type 'system.dllnotfoundexception' occurred in sqlite.net.platform.winrt.dll not handled in user code  additional information: unable load dll 'sqlite3': specified module not found. (exception hresult: 0x8007007e) 

this has been asked many many times , tried suggested solution, still not able fix it.

my packages.config

 <package id="sqlite.net-pcl" version="3.0.5" targetframework="wpa81" />   <package id="sqlite-winrt" version="3.8.7.1" targetframework="wpa81" />   <package id="xamarin.forms" version="1.4.2.6359" targetframework="wpa81" /> 

above packages downloaded nuget. missing anything? else need add?

also tried:

  1. downloaded sqlite-winrt81-3081002.vsix sqlite download page.
  2. copied sqlite3.dll x86.
  3. tried pasting in bin folder in project root , changed content copy always. (ref: https://stackoverflow.com/questions/4744293/unable-to-load-dll-sqlite3-the-specified-module-could-not-be-found-exceptio)
  4. my project targeting x86 not any cpu.

tried suggested solution from: sol1, sol2

my project references:

enter image description here

after installing sqlite visual studio extension, need add reference sqlite windows runtime in reference manager under windows / extensions.

like this.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -