In my seeding code I create Users and Roles, and the error seems to be whenever I run it through startup I seem to be getting
\"No service for type
You haven't registered the role services in the DI container. This line:
services.AddDefaultIdentity<AppUser>()
.AddEntityFrameworkStores<ApplicationDbContext>();
Needs to change to include them by using the AddRoles method. Assuming you are using the default IdentityRole class:
services.AddDefaultIdentity<AppUser>()
.AddRoles<IdentityRole>()
.AddEntityFrameworkStores<ApplicationDbContext>();