Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

AppTestBase ERROR. **** NMemory and Effort !!! #3135


User avatar
0
shaariii created

Hi there,

The context fail to load the entities at AppTestBase > InitialHostDbBuilder Everything was fine but suddenly all the test fail. The stack trace is :

System.Data.Entity.Core.EntityCommandExecutionException An error occurred while executing the command definition. See the inner exception for details. at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) at System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues) at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) at System.Data.Entity.Core.Objects.ObjectQuery1.<>c__DisplayClass7.<GetResults>b__5() at System.Data.Entity.Core.Objects.ObjectQuery1.GetResults(Nullable1 forMergeOption) at System.Data.Entity.Core.Objects.ObjectQuery1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0() at System.Data.Entity.Internal.LazyEnumerator1.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source) at MITD.TMS.Migrations.Seed.Host.DefaultEditionCreator.CreateEditions() in F:\TfsWorkspace\SCTMS\src\Orms\MITD.TMS.EntityFramework\Migrations\Seed\Host\DefaultEditionCreator.cs:line 26 at MITD.TMS.Migrations.Seed.Host.DefaultEditionCreator.Create() in F:\TfsWorkspace\SCTMS\src\Orms\MITD.TMS.EntityFramework\Migrations\Seed\Host\DefaultEditionCreator.cs:line 21 at MITD.TMS.Migrations.Seed.Host.InitialHostDbBuilder.Create() in F:\TfsWorkspace\SCTMS\src\Orms\MITD.TMS.EntityFramework\Migrations\Seed\Host\InitialHostDbBuilder.cs:line 16 at MITD.TMS.Tests.AppTestBase.<>c.<.ctor>b__2_0(TMSDbContext context) in F:\TfsWorkspace\SCTMS\src\Tests\MITD.TMS.Tests\AppTestBase.cs:line 49 at MITD.TMS.Tests.AppTestBase.UsingDbContext(Nullable1 tenantId, Action1 action) in F:\TfsWorkspace\SCTMS\src\Tests\MITD.TMS.Tests\AppTestBase.cs:line 160 at MITD.TMS.Tests.AppTestBase.UsingDbContext(Action1 action) in F:\TfsWorkspace\SCTMS\src\Tests\MITD.TMS.Tests\AppTestBase.cs:line 135 at MITD.TMS.Tests.AppTestBase..ctor() in F:\TfsWorkspace\SCTMS\src\Tests\MITD.TMS.Tests\AppTestBase.cs:line 44 at MITD.TMS.Tests.Localization.LanguageAppService_Tests..ctor() in F:\TfsWorkspace\SCTMS\src\Tests\MITD.TMS.Tests\Localization\LanguageAppService_Tests.cs:line 21

NMemory.Exceptions.ParameterException Error code: GenericError at NMemory.StoredProcedures.StoredProcedureBase.VerifyParameterValue(ParameterDescription parameter, Object value) at NMemory.StoredProcedures.StoredProcedureBase.VerifyParameters(IDictionary2 parameters) at NMemory.StoredProcedures.SharedStoredProcedure2.Execute(IDatabase database, IDictionary2 parameters, Transaction transaction) at Effort.Internal.CommandActions.QueryCommandAction.ExecuteDataReader(ActionContext context) at System.Data.Entity.Infrastructure.Interception.InternalDispatcher1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func3 operation, TInterceptionContext interceptionContext, Action3 executing, Action`3 executed) at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext) at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)

I have updated the packages but i didnt resolve. Thank you for responsing ASAP. We are in trouble for our unit tests


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry, I couldn't understand the reason from this message. Do you have the inner exception message ? If not, can you explain what change did you make before this error ?

    Thanks.