C#C
C#3y ago
mazino

Issue with AddUserStore in asp.net core

Hi. I have an issue with the following line of code in asp.net core
builder.Services.AddIdentityCore<ApplicationUser>(options => options.SignIn.RequireConfirmedAccount = true)
    .AddUserStore<ApplicationDbContext>();

I get this error ArgumentException: Implementation type 'WebApplication1.ApplicationDbContext' can't be converted to service type 'Microsoft.AspNetCore.Identity.IUserStore
(Im following the tutorial at this page)
Was this page helpful?