-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Mac OS X - EntryPointNotFoundException: sqlite3_close_v2 #3870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This error means Mono did not load the native library correctly. Mono's handling of P/Invoke is different than CoreCLR. Which version of Mono are you running? |
My version of Mono is |
Can you try making this simple test project: https://gist.github.com/natemcmaster/c50687b8e2812cbe6903? If this fails, run |
@jflr one more possibility: you are using x86 mono. What is the full output of |
@natemcmaster I have an x86 build of Mono. That could in fact be the issue. I'll try with amd64 Mono. |
@natemcmaster I've tried running the small program you've sent me, and it worked. What is interesting though is that my version of libsqlite3 is 3.7.13. However, based on the info at http://www.sqlite.org/changes.html, sqlite3_close_v2 was only added in 3.7.14. I believe that explains the As far as I know, I should still be using the version of libsqlite3 provided with Mac OS X, though maybe you can check your version to confirm. |
This makes sense now. In rc1 we required 3.7.15. In rc2, this should work back to 3.7.9 (see aspnet/Microsoft.Data.Sqlite#171) |
Mac OS X - EntryPointNotFoundException: sqlite3_close_v2
When using yeoman's "Web Application" template (which uses SQLite), trying to access the database by logging in, for example, throws an
EntryPointNotFoundException
.Functional impact
The following exception is thrown on database access:
Minimal repro steps
mono-1.0.0-rc1-final
runtime must be used to observe the issue (it works incoreclr
).http://wildermuth.com/2015/11/18/Upgrading_ASP_NET_5_Beta_8_to_RC1
to upgrade frombeta8
torc1
if necessary;dnu restore
(using Mono);dnx ef migrations add Init
(using Coreclr, does not work with Mono);dnx ef database update
(using Coreclr, does not work with Mono);dnx web
(using Mono);Expected result
Database accesses should succeed.
Further technical details
sqlite3 --version
returns3.8.10.2
;EntityFramework.Commands
andEntityFramework.SQlite
versions are7.0.0-rc1-final
;mono-1.0.0-rc1-final
;The text was updated successfully, but these errors were encountered: