Unable to load DLL 'SQLite.Interop.dll' on Visual Studio 2017 for UWP project

2

I get this error when using SQLite.

DllNotFoundException: Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I tried several solution without success.

Tried using x86/x64

Tried this: Visual Studio 2017 Xamarin UWP break, unable to load "sqlite3"

Added 2015 Visual C++ runtime dependency for UWP.

Tried manually adding the .dll and set it to "copy always".

Tried installing locally depedencies from here

I'm really out of ideas.

sqlite
uwp
visual-studio-2017
xaf
asked on Stack Overflow Jan 4, 2018 by Vallo • edited Jan 23, 2019 by Kirsten Greed

1 Answer

0

I had this problem running in release but not in debug. I am using VS2017 15.9.5 Using Release manager I changed all the projects to use Release x64 Strangely the Platform tab asked me to make a new Platform and I had to do this in order to be able to pick an x64 platform change platform

I wound up installing the SQLite modules in all the projects, not just the data tier. it would not work with just the data tier, even though I had Copy local true.

Here are the nuget packages I used

nuget packages

answered on Stack Overflow Jan 23, 2019 by Kirsten Greed • edited Jan 23, 2019 by Kirsten Greed

User contributions licensed under CC BY-SA 3.0