Open Closed

SignInManager error - The navigation 'IdentityUser.Claims' cannot be loaded because the entity is not being tracked. Navigations can only be loaded for tracked entities. #4771


User avatar
0
ccernat created
  • ABP Framework version: v7.1.0
  • UI type: Blazor Server single layer app
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I am trying to use the SignInManager but I am getting this error:

I am trying to check a code sent by email. All OK, but when I am trying to sign in I get the error above.

Does anyone encountered this? What could be the problem?

I am on a ABP Blazor server single layer app template.


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Begin a New Unit Of Work in your HandleValidSubmit method

    https://docs.abp.io/en/abp/latest/Unit-Of-Work#begin-a-new-unit-of-work

  • User Avatar
    0
    ccernat created

    Hi

    Unfortunately same error:

    Did I used incorrectly the uowManager?

    Tks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please use the using for whole method.

    private async Task HandleValidSubmit()
    {
    using (var uow = _unitOfWorkManager.Begin())
        {
            //...
            // Your code
            
            await uow.CompleteAsync();
        }
    }
    
  • User Avatar
    1
    ccernat created

    Hi,

    No more of previous error. But now I get this:

    Do you have any ideas?

  • User Avatar
    0
    ccernat created

    solved it.

    TKS!

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09