-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed as not planned
Description
I constructed a test project (asp.net 5 with EF 7) working correctly on windows with sqlite.
When running on linux in docker aspnet , running dnx ef migrations add test work fine
but dnx ef database update gives:
System.ObjectDisposedException: The object was used after being disposed.
at System.Runtime.InteropServices.SafeHandle.RunRelease () [0x00000] in <filename unknown>:0
at System.Runtime.InteropServices.SafeHandle.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.Runtime.InteropServices.SafeHandle.Dispose () [0x00000] in <filename unknown>:0
at Microsoft.Data.Sqlite.SqliteConnection.Close () [0x00000] in <filename unknown>:0
at Microsoft.Data.Sqlite.SqliteConnection.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.ComponentModel.Component.Dispose () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.ComponentModel.Component:Dispose ()
at Microsoft.Data.Entity.Storage.RelationalConnection.Dispose () [0x00000] in <filename unknown>:0
at Microsoft.Framework.DependencyInjection.ServiceProvider.Dispose () [0x00000] in <filename unknown>:0
at Microsoft.Data.Entity.Internal.DbContextServices.Dispose () [0x00000] in <filename unknown>:0
at Microsoft.Data.Entity.DbContext.Dispose () [0x00000] in <filename unknown>:0
at Microsoft.Data.Entity.Commands.MigrationTool.ApplyMigration (System.String migrationName, System.String contextTypeName, System.String startupAssemblyName) [0x00000] in <filename unknown>:0
at Microsoft.Data.Entity.Commands.Program+<>c__DisplayClass12_0.<ApplyMigration>b__0 () [0x00000] in <filename unknown>:0
at Microsoft.Data.Entity.Commands.Program.Execute (System.String startupProject, System.Action invoke) [0x00000] in <filename unknown>:0
at Microsoft.Data.Entity.Commands.Program.ApplyMigration (System.String migration, System.String context, System.String startupProject) [0x00000] in <filename unknown>:0
at Microsoft.Data.Entity.Commands.Program+<>c__DisplayClass9_2.<Main>b__5 () [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineUtilsExtensions+<>c__DisplayClass0_0.<OnExecute>b__0 () [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication.Execute (System.String[] args) [0x00000] in <filename unknown>:0
at Microsoft.Data.Entity.Commands.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly assembly, System.String[] args, IServiceProvider serviceProvider) [0x00000] in <filename unknown>:0
at Microsoft.Dnx.ApplicationHost.Program.ExecuteMain (Microsoft.Dnx.Runtime.DefaultHost host, System.String applicationName, System.String[] args) [0x00000] in <filename unknown>:0
at Microsoft.Dnx.ApplicationHost.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly assembly, System.String[] args, IServiceProvider serviceProvider) [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Host.Bootstrapper.RunAsync (System.Collections.Generic.List`1 args, IRuntimeEnvironment env, System.Runtime.Versioning.FrameworkName targetFramework) [0x00000] in <filename unknown>:0
Unhandled Exception:
System.EntryPointNotFoundException: sqlite3_close_v2
at (wrapper managed-to-native) Microsoft.Data.Sqlite.Interop.NativeMethods:sqlite3_close_v2 (intptr)
at Microsoft.Data.Sqlite.Interop.Sqlite3Handle.ReleaseHandle () [0x00000] in <filename unknown>:0
at System.Runtime.InteropServices.SafeHandle.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.Runtime.InteropServices.SafeHandle.Finalize () [0x00000] in <filename unknown>:0
Metadata
Metadata
Assignees
Labels
No labels