Open Closed

does not implement interface member 'IIdentityDbContext.UserDelegations' error #5045


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

we updated our project from 6.0.0 to 7.2.1

It gives "'NovFlowDbContext' does not implement interface member 'IIdentityDbContext.UserDelegations'    NovFlow.EntityFrameworkCore" error

can you help for this ?


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

    hi

    Add public DbSet<IdentityUserDelegation> UserDelegations { get; } to your DbContext and add new migrations.

  • User Avatar
    0
    novelty created

    Hi again,

    I am getting an error while migrating.

  • User Avatar
    0
    novelty created

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Run the dotnet build command in your ef core folder to see the details.

  • User Avatar
    0
    novelty created

    Build succeeded. 0 Warning(s) 0 Error(s)

    But add-migration gives same error. "Build failed"

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, Can you try to build your solution via dotnet build?

    And you can use dotnet ef add migrations Upgradeed_to_7_2

    https://learn.microsoft.com/en-us/ef/core/cli/dotnet#dotnet-ef-migrations-add

  • User Avatar
    0
    novelty created

    Hi,

    It gives AbpRemoteCallException: Internal Server Error

    AppService

    BlazorApp

  • User Avatar
    0
    novelty created

    Why might we get such an error?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please resolve the 500 error first.

    HTTP 500.30

    https://learn.microsoft.com/en-us/aspnet/core/test/troubleshoot-azure-iis?WT.mc_id=DT-MVP-5003202&view=aspnetcore-7.0#50030-in-process-startup-failure

    https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/logging-and-diagnostics?view=aspnetcore-7.0

    https://blog.elmah.io/http-error-500-30-asp-net-core-app-failed-to-start-help/

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11