Previously .NET SQLite libraries were available from http://sqlite.phxsoftware.com
, but they have recently been taken over by the main SQLite team and have moved System.Data.SQLite Download Page. The new packages don't seem to contain mixed assemblies anymore (single assembly containing sqlite3.dll and the .NET wrapper).
The new package comes with the .NET DLL and SQLite.Interop.dll
which based on the documentation is not needed on the desktop but my application fails to load with Unable to load DLL 'SQLite.Interop.DLL': The specified module could not be found.
. I have tried running the application under IIS/IIS Express with apppool set to 32-bit.
I have tried copying the SQLite.Interop.dll
file into the bin
folder, the system folder, and the ASP.NET temp folder but still get the same error.
Are there mixed assemblies for new releases available anywhere? If not, is there a way to fix the Unable to load DLL 'SQLite.Interop.DLL
error?
The downloads page now contains "mixed mode" downloads for all variations of System.Data.SQLite, that work the same way as earlier versions of SQLite i.e. no requirement to also include SQLite.Interop.dll in your project.
The trick is - look for the word "bundle" in the download links
e.g. sqlite-netFx35-setup-bundle-x86-2008-1.0.76.0.exe
You will also see that the description text for these links begins with "This setup package features the mixed-mode assembly".
I got burned because I didn't realize that this really means "download this one if you want it to work the way it always did before".
Having no idea what was meant by a mixed-mode assembly, the other links seemed like a better option - because they claim "This setup package will install all the necessary runtime components and dependencies".
Also note that the only way to tell if you've gotten the "wrong" one is by file size. The DLLs have exactly the same name, and exactly the same version number. The mixed-mode version is much bigger - around 700K. The other one is around 160K.
What a mess...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With