Answers for "invalidoperationexception: unable to resolve service for type 'microsoft.aspnetcore.identity.rolemanager`1[microsoft.aspnetcore.identity.identityrole]' while attempting to activate 'ultra_soft.controllers.homecontroller'."

C#
0

Unable to resolve service for type 'Microsoft.AspNetCore.Identity.RoleManager`1[Microsoft.AspNetCore.Identity.IdentityRole]' while attempting to activate 'PathApp.Controllers.SearchPathController'.

services.AddDefaultIdentity<ApplicationUser().AddRoles<IdentityRole>().AddEntityFrameworkStores<ApplicationDbContext>();
Posted by: Guest on February-16-2020

Code answers related to "invalidoperationexception: unable to resolve service for type 'microsoft.aspnetcore.identity.rolemanager`1[microsoft.aspnetcore.identity.identityrole]' while attempting to activate 'ultra_soft.controllers.homecontroller'."

C# Answers by Framework

Browse Popular Code Answers by Language