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
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.
User contributions licensed under CC BY-SA 3.0