InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.RoleManager`1[Microsoft.AspNetCore.Identity.IdentityRole]' while attempting to activate 'App.Areas.Identity.Pages.Account.LoginModel'.
I have Inherit RoleManager class but this error show.

Amit MohantyRank #112 · 20K reputationPosted May 17, 2022, 8:32 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted May 17, 2022, 8:59 AM EDT
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted May 18, 2022, 1:21 AM EDT