You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
Create ASP.NET 4 web application
Add Microsoft.Data.Sqlite 1.0.0
Add code that calls SqliteConnection.Open()
Error
DllImportException "sqlite3.dll" not found
Reason
Despite the build appropriately places sqlite3.dll in to bin/x86 and bin/x64, ASP.NET sets AppDomain.CurrentDomain.BaseDirectory to the project root, but NativeLibraryLoader needs to use "$projectRoot/bin"
The text was updated successfully, but these errors were encountered:
VitaliyMF
added a commit
to VitaliyMF/Microsoft.Data.Sqlite
that referenced
this issue
Jul 28, 2016
I've faced the same issue as @natemcmaster, bug can be reproduced when Microsoft.Data.Sqlite is used from .NET 4.5.1 ASP.NET application. The fix is rather trivial: #280
Repro
Create ASP.NET 4 web application
Add Microsoft.Data.Sqlite 1.0.0
Add code that calls
SqliteConnection.Open()
Error
DllImportException "sqlite3.dll" not found
Reason
Despite the build appropriately places sqlite3.dll in to bin/x86 and bin/x64, ASP.NET sets
AppDomain.CurrentDomain.BaseDirectory
to the project root, but NativeLibraryLoader needs to use "$projectRoot/bin"The text was updated successfully, but these errors were encountered: