Activities of "natasha.voloshyna"

Hi yes, thank you for the help. The issue is solved with ensuring all ABP/Volo packages are 8.3.4

Thank you looking into this

  • ABP Framework version: v8.3.4
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:

MissingMethodException: Method not found: 'System.Threading.Tasks.Task1<Volo.Abp.Identity.IdentitySession> Volo.Abp.Identity.IdentitySessionManager.CreateAsync(System.String, System.String, System.String, System.Guid, System.Nullable1<System.Guid>, System.String, System.String)'.

Volo.Abp.Account.Public.Web.AbpAccountPublicWebModule+&lt;&gt;c__DisplayClass2_0+qLQ1s4AFvpJkAoSGxtN.MoveNext()
System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start&lt;TStateMachine&gt;(ref TStateMachine stateMachine)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start&lt;TStateMachine&gt;(ref TStateMachine stateMachine)
Volo.Abp.Account.Public.Web.AbpAccountPublicWebModule+&lt;&gt;c__DisplayClass2_0.&lt;ConfigureServices&gt;b__8(CookieSignedInContext cookieSignedInContext)
Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler.HandleSignInAsync(ClaimsPrincipal user, AuthenticationProperties properties)
Microsoft.AspNetCore.Authentication.AuthenticationService.SignInAsync(HttpContext context, string scheme, ClaimsPrincipal principal, AuthenticationProperties properties)
Microsoft.AspNetCore.Identity.SignInManager&lt;TUser&gt;.SignInWithClaimsAsync(TUser user, AuthenticationProperties authenticationProperties, IEnumerable&lt;Claim&gt; additionalClaims)
Microsoft.AspNetCore.Identity.SignInManager&lt;TUser&gt;.SignInOrTwoFactorAsync(TUser user, bool isPersistent, string loginProvider, bool bypassTwoFactor)
Microsoft.AspNetCore.Identity.SignInManager&lt;TUser&gt;.PasswordSignInAsync(TUser user, string password, bool isPersistent, bool lockoutOnFailure)
Microsoft.AspNetCore.Identity.SignInManager&lt;TUser&gt;.PasswordSignInAsync(string userName, string password, bool isPersistent, bool lockoutOnFailure)
Volo.Abp.Identity.AspNetCore.AbpSignInManager.PasswordSignInAsync(string userName, string password, bool isPersistent, bool lockoutOnFailure)
Volo.Abp.Account.Public.Web.Pages.Account.LoginModel.OnPostAsync(string action)
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory+GenericTaskHandlerMethod.Convert&lt;T&gt;(object taskAsObject)
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory+GenericTaskHandlerMethod.Execute(object receiver, object[] arguments)
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextExceptionFilterAsync&gt;g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextResourceFilter&gt;g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeFilterPipelineAsync&gt;g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeAsync&gt;g__Logged|17_1(ResourceInvoker invoker)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeAsync&gt;g__Logged|17_1(ResourceInvoker invoker)
Microsoft.AspNetCore.Routing.EndpointMiddleware.&lt;Invoke&gt;g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)
Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+InterfaceMiddlewareBinder+&lt;&gt;c__DisplayClass2_0+&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
Volo.Abp.AspNetCore.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Volo.Abp.AspNetCore.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+InterfaceMiddlewareBinder+&lt;&gt;c__DisplayClass2_0+&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
Volo.Abp.AspNetCore.Uow.AbpUnitOfWorkMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+InterfaceMiddlewareBinder+&lt;&gt;c__DisplayClass2_0+&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+InterfaceMiddlewareBinder+&lt;&gt;c__DisplayClass2_0+&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
Microsoft.AspNetCore.Builder.ApplicationBuilderAbpOpenIddictMiddlewareExtension+&lt;&gt;c__DisplayClass0_0+&lt;&lt;UseAbpOpenIddictValidation&gt;b__0>d.MoveNext()
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+InterfaceMiddlewareBinder+&lt;&gt;c__DisplayClass2_0+&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+InterfaceMiddlewareBinder+&lt;&gt;c__DisplayClass2_0+&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
  • Steps to reproduce the issue:

Thank you for the suggestion!

  • ABP Framework version: v8.2.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hello ABP Team,

We are having an issue getting ConcurrencyStamp updated on the navigational entities of an Aggregate Root. The fields are updated in DB for the navigational entity, however the ConcurrencyStamp stays unchanged.

At the same time for AggregateRoot objects the ConcurrencyStamp is updated without problems in db along with the data.

The navigational entities are of type AuditedEntity. We added Concurrency Check to them by implementing IHasConcurrencyStamp interface and adding ConcurrencyStamp to the class properties

class Party : AuditedEntity<Guid>, IHasConcurrencyStamp
{
    ...
    public virtual string ConcurrencyStamp { get; set; }
}

We ended up overriding HandlePropertiesBeforeSave of AbpDbContext as mentioned in issue 19962, which did help:

protected virtual void HandlePropertiesBeforeSave()
{
    var entries = ChangeTracker.Entries().ToList();
    foreach (var entry in entries)
    {
        HandleExtraPropertiesOnSave(entry);

        if (entry.State.IsIn(EntityState.Modified, EntityState.Deleted))
        {
            UpdateConcurrencyStamp(entry);
        }
    }

    if (EntityChangeOptions.Value.PublishEntityUpdatedEventWhenNavigationChanges)
    {
        foreach (var entry in AbpEfCoreNavigationHelper.GetChangedEntityEntries().Where(x => x.State == EntityState.Unchanged))
        {
            UpdateConcurrencyStamp(entry);
        }
    }
}

We would like to know if we are missing something in the way we are adding Concurrency Check handling to objects of type AuditedEntity.

Is overriding HandlePropertiesBeforeSave method of AbpDbContext the only solution to get the ConcurrencyStamp of navigational entities to be refreshed upon updates?

Showing 1 to 5 of 5 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 08, 2025, 14:09