hello,
i keep getting this error when trying to run a aspnet identity:
System.InvalidOperationException: Unable to resolve service for type 'Microsoft.Extensions.Logging.ILogger`1[Microsoft.AspNetCore.Identity.UserManager`1[IdentityServer.Models.ApplicationUser]]' while attempting to activate 'Microsoft.AspNetCore.Identity.UserManager`1[IdentityServer.Models.ApplicationUser]'.
my startup file contains:
services.AddDefaultIdentity<ApplicationUser>()
.AddRoles<IdentityRole>()
.AddEntityFrameworkStores<IdentityDbContext>()
.AddDefaultTokenProviders();
it used to have this:
services.AddIdentity<ApplicationUser, IdentityRole>(options =>
{
options.SignIn.RequireConfirmedEmail = true;
})
.AddEntityFrameworkStores<IdentityDbContext>()
.AddDefaultTokenProviders();
i have also updated any reference i could find to the user class to ensure it is the same as my custom one. I have searched the entire solution but cant find any other references to a user class except for my custom ApplicationUser Class.
ive tried adding an instance of ilogger but that doesnt solve anything. Is this a problem with 3.1? before updating the framework my previous projects worked but now i just get this problem