I am trying to use 64-bit Sqlite
on my Aspx
project. When I run the project, I got the following error:
Could not load file
Nuget was the final solution for me, i was using x64 because i have windows 8.1 64 bit,However i should use x86. once install System.Data.SQLite
If you are using visual studio try installing through the package manager http://www.nuget.org/packages/system.data.sqlite. This may help out with the dependency tree issues.
If you do not use NuGet or prefer to reference the sqlite assemblies your self, make sure you use the right platform version (x64 vs x86).
To support both platform, you can reference the System.Data.SQLite.dll, and adds 2 separate folders for each platform to hold the SQLite.Interop.dl.
Copy from official sqlite download site:
With this setup, your app can run in both x64 and x86 platform. For more detail info, you can refer to sqlite download site here