Rider DB update errors

Rider for some reason stopped to take my DB updates. Not sure why, everything works perfect in Visual Studio, its just that I get those errors in rider. 

Any suggestions ?

 

 

 

09:29:01.511 |I| EntityFrameworkRunnerProgram | :1 | Using EntityFramework 6.4.0
09:29:06.432 |E| UpdateDatabaseRunner | :1 | Inner exception stack trace: System.Data.Entity.Migrations.Infrastructure.MigrationsException: The specified target migration '202110220618281_test_0918' does not exist. Ensure that target migration refers to an existing migration id. at System.Data.Entity.Migrations.History.HistoryRepository.GetMigrationsSince(String migrationId) at System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration) at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase) at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration) at System.Data.Entity.Migrations.Design.ToolingFacade.BaseRunner.Run()

--- EXCEPTION #1/1 [LoggerException]
Message = “
Inner exception stack trace: System.Data.Entity.Migrations.Infrastructure.MigrationsException: The specified target migration '202110220618281_test_0918' does not exist. Ensure that target migration refers to an existing migration id.
at System.Data.Entity.Migrations.History.HistoryRepository.GetMigrationsSince(String migrationId)
at System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration)
at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
at System.Data.Entity.Migrations.Design.ToolingFacade.BaseRunner.Run()

ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.ILoggerEx.LogMessage(ILogger this, LoggingLevel level, String message)
at JetBrains.EntityFramework.Runner620.CommandRunnerBase`2.JetBrains.EntityFramework.Runner620.ICommandRunner<TIn>.Run(TIn command)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at JetBrains.EntityFramework.Runner620.EntityFrameworkRunnerProgram.Main(String[] args)

09:29:06.445 |E| EntityFrameworkRunnerProgram | :1 | The specified target migration '202110220618281_test_0918' does not exist. Ensure that target migration refers to an existing migration id.

--- EXCEPTION #1/3 [ToolingException]
Message = “The specified target migration '202110220618281_test_0918' does not exist. Ensure that target migration refers to an existing migration id.”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.Data.Entity.Migrations.Design.ToolingException
HResult = COR_E_EXCEPTION=80131500
Source = EntityFramework
SafeSerializationManager.m_serializedStates.#0 = System.Data.Entity.Migrations.Design.ToolingException+ToolingExceptionState
CLR_SafeSerializationManager_RealType.Data = System.Data.Entity.Migrations.Design.ToolingException
CLR_SafeSerializationManager_RealType.UnityType = 4
CLR_SafeSerializationManager_RealType.AssemblyName = “EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”
StackTraceString = “
at System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner)
at JetBrains.EntityFramework.Runner620.UpdateDatabaseRunner.DoRun(UpdateDatabaseCommand command)
at JetBrains.EntityFramework.Runner620.CommandRunnerBase`2.JetBrains.EntityFramework.Runner620.ICommandRunner<TIn>.Run(TIn command)

--- Outer ---

--- EXCEPTION #2/3 [TargetInvocationException]
Message = “Exception has been thrown by the target of an invocation.”
ExceptionPath = Root.InnerException
ClassName = System.Reflection.TargetInvocationException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_TARGETINVOCATION=80131604
Source = mscorlib
StackTraceString = “
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at JetBrains.EntityFramework.Runner620.EntityFrameworkRunnerProgram.Main(String[] args)

--- Outer ---

--- EXCEPTION #3/3 [LoggerException]
Message = “Exception has been thrown by the target of an invocation.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
at JetBrains.EntityFramework.Runner620.EntityFrameworkRunnerProgram.<>c.<InstallExceptionHandler>b__4_0(Object sender, UnhandledExceptionEventArgs eventArgs)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at JetBrains.EntityFramework.Runner620.EntityFrameworkRunnerProgram.Main(String[] args)

 


Operation FAILED

2 comments
Comment actions Permalink

Could you please describe step by step what are you doing?

0

Please sign in to leave a comment.