{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/3870","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/3870/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/3870/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/3870/events","html_url":"https://github.com/aspnet/EntityFramework/issues/3870","id":118519314,"number":3870,"title":"Mac OS X - EntryPointNotFoundException: sqlite3_close_v2","user":{"login":"jflr","id":5943347,"avatar_url":"https://avatars.githubusercontent.com/u/5943347?v=3","gravatar_id":"","url":"https://api.github.com/users/jflr","html_url":"https://github.com/jflr","followers_url":"https://api.github.com/users/jflr/followers","following_url":"https://api.github.com/users/jflr/following{/other_user}","gists_url":"https://api.github.com/users/jflr/gists{/gist_id}","starred_url":"https://api.github.com/users/jflr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jflr/subscriptions","organizations_url":"https://api.github.com/users/jflr/orgs","repos_url":"https://api.github.com/users/jflr/repos","events_url":"https://api.github.com/users/jflr/events{/privacy}","received_events_url":"https://api.github.com/users/jflr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/pri0","name":"pri0","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars.githubusercontent.com/u/2696087?v=3","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/7","html_url":"https://github.com/aspnet/EntityFramework/milestones/7.0.0","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/7/labels","id":666128,"number":7,"title":"7.0.0","description":"","creator":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"open_issues":259,"closed_issues":19,"state":"open","created_at":"2014-05-21T19:25:32Z","updated_at":"2015-11-24T20:26:09Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-11-24T02:29:15Z","updated_at":"2015-11-24T21:14:25Z","closed_at":null,"body":"### Mac OS X - EntryPointNotFoundException: sqlite3_close_v2\r\nWhen using yeoman's \"Web Application\" template (which uses SQLite), trying to access the database by logging in, for example, throws an `EntryPointNotFoundException`.  \r\n\r\n### Functional impact\r\nThe following exception is thrown on database access:\r\n> Unhandled Exception:\r\n> System.EntryPointNotFoundException: sqlite3_close_v2\r\n>   at (wrapper managed-to-native) Microsoft.Data.Sqlite.Interop.NativeMethods:sqlite3_close_v2 (intptr)\r\n>   at Microsoft.Data.Sqlite.Interop.Sqlite3Handle.ReleaseHandle () [0x00000] in <filename unknown>:0 \r\n>   at System.Runtime.InteropServices.SafeHandle.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 \r\n>   at System.Runtime.InteropServices.SafeHandle.Finalize () [0x00000] in <filename unknown>:0 \r\n\r\n### Minimal repro steps\r\n`mono-1.0.0-rc1-final` runtime must be used to observe the issue (it works in `coreclr`).  \r\n\r\n1. Create a new \"Web Application\" using yeoman;\r\n2. Follow the instructions at `http://wildermuth.com/2015/11/18/Upgrading_ASP_NET_5_Beta_8_to_RC1` to upgrade from `beta8` to `rc1` if necessary;\r\n3. `dnu restore` (using Mono);\r\n4. `dnx ef migrations add Init` (using Coreclr, does not work with Mono);\r\n4. `dnx ef database update` (using Coreclr, does not work with Mono);\r\n5. `dnx web` (using Mono);\r\n6. Try to log in;\r\n7. The request fails;\r\n\r\n### Expected result\r\nDatabase accesses should succeed.\r\n\r\n### Further technical details\r\n* Operating system: Mac OS X El Capitan;\r\n* `sqlite3 --version` returns `3.8.10.2`;\r\n* `EntityFramework.Commands` and `EntityFramework.SQlite` versions are `7.0.0-rc1-final`;\r\n* Runtime used: `mono-1.0.0-rc1-final`;"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/159406938","html_url":"https://github.com/aspnet/EntityFramework/issues/3870#issuecomment-159406938","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/3870","id":159406938,"user":{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars.githubusercontent.com/u/2696087?v=3","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T21:14:25Z","updated_at":"2015-11-24T21:14:25Z","body":"This error means Mono did not load the native library correctly. [Mono's handling of P/Invoke](http://www.mono-project.com/docs/advanced/pinvoke/) is different than CoreCLR. Which version of Mono are you running? ``mono --version``"}}