Dear Abp Represenative,
We encountered an issue while upgrading Abp NuGet packages from 4.9.0 to 4.10.0.
We are using the "ASP.NET MVC 5.x, Web API and AngularJS 1.x based Single-Page Application (SPA) solution."
After calling SaveChangesAsync on the CurrentUnitOfWork we get a "Value cannot be null Parameter name: source" exception (please reference included screenshot).
Here is the stack trace:
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Abp.EntityHistory.EntityHistoryHelper.GetRelationshipChanges(DbEntityEntry entityEntry, EntityType entityType, EntitySet entitySet, ICollection`1 relationshipChanges, Boolean auditedPropertiesOnly)
at Abp.EntityHistory.EntityHistoryHelper.CreateEntityChangeSet(DbContext context)
at Abp.Zero.EntityFramework.AbpZeroCommonDbContext`2.<SaveChangesAsync>d__104.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.EntityFramework.Uow.EfUnitOfWork.<SaveChangesInDbContextAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Abp.EntityFramework.Uow.EfUnitOfWork.<SaveChangesAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at MyCompanyName.AbpZeroTemplate.Enrollment.EnrollmentAppService.<AddUserAsync>d__63.MoveNext() in c:\projects\port\src\careLearning\MyCompanyName.AbpZeroTemplate.Application\Enrollment\EnrollmentAppService.cs:line 934
Our work around is to disable the EntityHistory feature outlined here https://aspnetboilerplate.com/Pages/Documents/Entity-History.
This is a FYI for anyone else who may experience the issue.
2 Answer(s)
-
0
Hi @carelearning
Can you reproduce your problem using the Zero Demo project? If you can, please share the project: [email protected]
-
0
This issue is closed because it has not had recent activity for a long time.