SQLite DLL - Failed to load exception

1

I'm building an application using VS2010, C#, .NET4 with a SQLIte database in a Windows application, I'm trying to reference System.Data.SQLite which i`ve installed using NuGet into my project. I am referencing methods within the SQLite namespace without any issues, but running the application gives me the below exception, can someone help please?

$exception {"Unable to initialise application : Could not load file or assembly 'System.Data.SQLite.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)"} System.Exception

c#
.net
sqlite
asked on Stack Overflow Aug 2, 2015 by osmo • edited Nov 28, 2016 by eightShirt

1 Answer

0

Depending on your project, to install SQLite, you need to possibly install the SQLIte for (Windows Phone / Windows Runtime) Visual Studio extension, and always manually add the reference of SQLite.dll to the project.

answered on Stack Overflow Aug 2, 2015 by Daniel Rusznyak

User contributions licensed under CC BY-SA 3.0