C
C#8mo 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>();
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)
1 Reply
Saber
Saber8mo ago
So where in that page does it register the dbcontext as a userstore?