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:
- downloaded sqlite-winrt81-3081002.vsix sqlite download page.
- copied sqlite3.dll x86.
- 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)
- my project targeting x86 not any cpu.
tried suggested solution from: sol1, sol2
my project references:
after installing sqlite visual studio extension, need add reference sqlite windows runtime
in reference manager under windows / extensions.
Comments
Post a Comment