{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/2479","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/2479/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/2479/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/2479/events","html_url":"https://github.com/aspnet/EntityFramework/issues/2479","id":91341682,"number":2479,"title":"Sqlite fails on 2nd run (beta 6 13586)","user":{"login":"salerth","id":768512,"avatar_url":"https://avatars.githubusercontent.com/u/768512?v=3","gravatar_id":"","url":"https://api.github.com/users/salerth","html_url":"https://github.com/salerth","followers_url":"https://api.github.com/users/salerth/followers","following_url":"https://api.github.com/users/salerth/following{/other_user}","gists_url":"https://api.github.com/users/salerth/gists{/gist_id}","starred_url":"https://api.github.com/users/salerth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salerth/subscriptions","organizations_url":"https://api.github.com/users/salerth/orgs","repos_url":"https://api.github.com/users/salerth/repos","events_url":"https://api.github.com/users/salerth/events{/privacy}","received_events_url":"https://api.github.com/users/salerth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/cross-plat","name":"cross-plat","color":"EEEEEE"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-26T19:32:32Z","updated_at":"2015-06-26T21:27:01Z","closed_at":null,"body":"A bit of a weird one, but background info:\r\n - EF version (EntityFramework.Sqlite/7.0.0-beta6-13586)\r\n - Sqlite file\r\n - OSX / Mono-x64-1.0.0-beta6-12120\r\n - ASP.NET 5 web application (running under kestrel)\r\n\r\nProblem:\r\nI have an ASPNET web application which worked on the `EntityFramework/7.0.0-beta6-13554` binaries.  However after upgrade, the application throws on error when using a database created by a prior instance.  i.e. If I delete the sqlite file my app uses, it will create a new file and work perfectly fine.  However if I then shut down kestrel and restart it, I get the below error.\r\n\r\n```\r\nNullReferenceException: Object reference not set to an instance of an object\r\nMicrosoft.Framework.DependencyInjection.ServiceProvider.CaptureDisposable (System.Object service) [0x00000] in <filename unknown>\r\nMicrosoft.Framework.DependencyInjection.ServiceProvider+ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider provider) [0x00000] in <filename unknown>\r\nMicrosoft.Framework.DependencyInjection.ServiceLookup.Service+ConstructorCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider provider) [0x00000] in <filename unknown>\r\nMicrosoft.Framework.DependencyInjection.ServiceProvider+ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider provider) [0x00000] in <filename unknown>\r\nMicrosoft.Framework.DependencyInjection.ServiceProvider+<>c__DisplayClass8_0.<RealizeService>b__0 (Microsoft.Framework.DependencyInjection.ServiceProvider provider) [0x00000] in <filename unknown>\r\nMicrosoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type serviceType) [0x00000] in <filename unknown>\r\nMicrosoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService (IServiceProvider provider, System.Type serviceType) [0x00000] in <filename unknown>\r\nMicrosoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService[IEntityQueryProvider] (IServiceProvider provider) [0x00000] in <filename unknown>\r\nMicrosoft.Data.Entity.Infrastructure.AccessorExtensions.GetService[IEntityQueryProvider] (IAccessor`1 accessor) [0x00000] in <filename unknown>\r\nMicrosoft.Data.Entity.Internal.InternalDbSet`1[Kraken.Models.Component].<.ctor>b__2_0 () [0x00000] in <filename unknown>\r\nMicrosoft.Data.Entity.Internal.LazyRef`1[Microsoft.Data.Entity.Query.EntityQueryable`1[Kraken.Models.Component]].get_Value () [0x00000] in <filename unknown>\r\nMicrosoft.Data.Entity.Internal.InternalDbSet`1[Kraken.Models.Component].System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator () [0x00000] in <filename unknown>\r\nSystem.Linq.Enumerable+<CreateGroupByIterator>c__Iterator5`2[Kraken.Models.Component,System.String].MoveNext () [0x00000] in <filename unknown>\r\nAsp.ASPV__Views_Shared_Components_ComponentsMenu_Default_cshtml+<ExecuteAsync>d__17.MoveNext () [0x00000] in <filename unknown>\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/115888488","html_url":"https://github.com/aspnet/EntityFramework/issues/2479#issuecomment-115888488","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/2479","id":115888488,"user":{"login":"bricelam","id":1226749,"avatar_url":"https://avatars.githubusercontent.com/u/1226749?v=3","gravatar_id":"","url":"https://api.github.com/users/bricelam","html_url":"https://github.com/bricelam","followers_url":"https://api.github.com/users/bricelam/followers","following_url":"https://api.github.com/users/bricelam/following{/other_user}","gists_url":"https://api.github.com/users/bricelam/gists{/gist_id}","starred_url":"https://api.github.com/users/bricelam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricelam/subscriptions","organizations_url":"https://api.github.com/users/bricelam/orgs","repos_url":"https://api.github.com/users/bricelam/repos","events_url":"https://api.github.com/users/bricelam/events{/privacy}","received_events_url":"https://api.github.com/users/bricelam/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T21:27:01Z","updated_at":"2015-06-26T21:27:01Z","body":"Weird. We recently changed the database encoding from UTF-16 to UTF-8. I wonder if it's related."}}