I realize this is a pseudo non-Microsoft product, but I had this working with not issues until I migrated to VS2015 and update to SQLite 1.0.105.2
Do be clear I have dealt with this error in the past migrating from .Net 2.0 to 3.5, now I am on 4.0 hoping to migrate to 4.5 or 4.6.
I have tried virtually every solution I could read and process on the web over the last three days, starting with the dozen or so listed on this link...
https://stackoverflow.com/questions/13028069/unable-to-load-dll-sqlite-interop-dll
So lets review: the error after using one click deploy is list here, details of the config and set up are below the error.
System.DllNotFoundException: Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op) at System.Data.SQLite.SQLite3.StaticIsInitialized() at System.Data.SQLite.SQLiteLog.Initialize() at System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework) at System.Data.SQLite.SQLiteConnection..ctor() at MultiLangWeb.testSS.addRequiredLangs(String market, String filePath, XmlTextWriter myXmlTextWriter) at MultiLangWeb.testSS.getMyFiles(String dbLabel, Boolean processPTS, Boolean processPTT, XmlTextWriter myXmlTextWriter) at MultiLangWeb.testSS.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The package was downloaded using NuGet, I tried uninstalling and reinstalling the package.
Here is the installation results:
Attempting to gather dependency information for package 'System.Data.SQLite.1.0.105.2' with respect to project 'MultiLangWeb', targeting '.NETFramework,Version=v4.0'
Gathering dependency information took 342.61 ms
Attempting to resolve dependencies for package 'System.Data.SQLite.1.0.105.2' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'System.Data.SQLite.1.0.105.2'
Resolved actions to install package 'System.Data.SQLite.1.0.105.2'
Retrieving package 'System.Data.SQLite.Core 1.0.105.2' from 'nuget.org'.
Retrieving package 'System.Data.SQLite.EF6 1.0.105.2' from 'nuget.org'.
Retrieving package 'System.Data.SQLite.Linq 1.0.105.2' from 'nuget.org'.
Retrieving package 'System.Data.SQLite 1.0.105.2' from 'nuget.org'.
Retrieving package 'EntityFramework 6.0.0' from 'nuget.org'.
Adding package 'EntityFramework.6.0.0' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'EntityFramework.6.0.0' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'EntityFramework.6.0.0' to 'packages.config'
Executing script file 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages\EntityFramework.6.0.0\tools\init.ps1'...
Executing script file 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages\EntityFramework.6.0.0\tools\install.ps1'...
Type 'get-help EntityFramework' to see all available Entity Framework commands.
Successfully installed 'EntityFramework 6.0.0' to MultiLangWeb
Adding package 'System.Data.SQLite.Core.1.0.105.2' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'System.Data.SQLite.Core.1.0.105.2' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'System.Data.SQLite.Core.1.0.105.2' to 'packages.config'
Successfully installed 'System.Data.SQLite.Core 1.0.105.2' to MultiLangWeb
Adding package 'System.Data.SQLite.EF6.1.0.105.2' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'System.Data.SQLite.EF6.1.0.105.2' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'System.Data.SQLite.EF6.1.0.105.2' to 'packages.config'
Executing script file 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages\System.Data.SQLite.EF6.1.0.105.2\tools\net40\install.ps1'...
Successfully installed 'System.Data.SQLite.EF6 1.0.105.2' to MultiLangWeb
Adding package 'System.Data.SQLite.Linq.1.0.105.2' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'System.Data.SQLite.Linq.1.0.105.2' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'System.Data.SQLite.Linq.1.0.105.2' to 'packages.config'
Successfully installed 'System.Data.SQLite.Linq 1.0.105.2' to MultiLangWeb
Adding package 'System.Data.SQLite.1.0.105.2', which only has dependencies, to project 'MultiLangWeb'.
Adding package 'System.Data.SQLite.1.0.105.2' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'System.Data.SQLite.1.0.105.2' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'System.Data.SQLite.1.0.105.2' to 'packages.config'
Successfully installed 'System.Data.SQLite 1.0.105.2' to MultiLangWeb
Executing nuget actions took 37.47 sec
========== Finished ==========
Time Elapsed: 00:00:42.7434414
In between efforts to get the above package to work, I also tried this one that appears to me coded by Microsoft.
PM> Install-Package Microsoft.Data.SQLite -Version 2.0.0
Attempting to gather dependency information for package 'Microsoft.Data.SQLite.2.0.0' with respect to project 'MultiLangWeb', targeting '.NETFramework,Version=v4.0'
Gathering dependency information took 280.49 ms
Attempting to resolve dependencies for package 'Microsoft.Data.SQLite.2.0.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Microsoft.Data.SQLite.2.0.0'
Resolved actions to install package 'Microsoft.Data.SQLite.2.0.0'
Retrieving package 'Microsoft.Data.Sqlite 2.0.0' from 'nuget.org'.
GET https://api.nuget.org/v3-flatcontainer/microsoft.data.sqlite/2.0.0/microsoft.data.sqlite.2.0.0.nupkg OK https://api.nuget.org/v3-flatcontainer/microsoft.data.sqlite/2.0.0/microsoft.data.sqlite.2.0.0.nupkg 43ms
Installing Microsoft.Data.Sqlite 2.0.0.
Adding package 'Microsoft.Data.Sqlite.2.0.0', which only has dependencies, to project 'MultiLangWeb'.
Adding package 'Microsoft.Data.Sqlite.2.0.0' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'Microsoft.Data.Sqlite.2.0.0' to folder 'C:\Users\mhornung\Documents\Visual Studio 2015\Projects\MultiLangWeb4Let\packages'
Added package 'Microsoft.Data.Sqlite.2.0.0' to 'packages.config'
Successfully installed 'Microsoft.Data.Sqlite 2.0.0' to MultiLangWeb
Executing nuget actions took 260.34 ms
Time Elapsed: 00:00:00.6279130
PM>
This did not work at all and could not be located in the references to confirm it was loaded.
The bottom line is that if NuGet packages can not effectively install these products, NuGet is useless and should be removed from Visual Studio.
I have tried moving files into various \bin folders. I have checked my compile CPU type, everything is x86.
As an add on note, NuGet reported one update, but nothing was displayed. I clicked refresh while on the Update menu option still nothing displayed. I closed the NuGet Package Manager window and reopened and low and behold, there was the package needing update,
Entity Framework.
I would be grateful for any other suggestions on why this will not work in Visual Studio 2015 from the NuGet download. I have tried many solutions suggested for VS 2012/13 with no luck as well.
Of course if I copy the missing Interop to the project root and recompile and publish the app will work because the code will find the .dll.
I would really like to know how to fix this.