Asp.net – No service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' has been registered Using Custom Class
I would like to register my service using the CustomUser class, which inherits from IdentityUser. However, when I do I get the following error in my browser: InvalidOperationException: No service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' has been registered. My relevant code: builder.Services.AddDefaultIdentity<CustomUser>(options…