mazino
mazino
CC#
Created by mazino on 10/14/2023 in #help
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>();
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)
2 replies