In my solution I have an isolated ASP.NET Core 8 Web API project with identity. I want to add a MVC project to use the existing identity
In my solution, I have a separate ASP.NET Core 8 Web API project with identity.
asp.net core identity RoleManager.FindByNameAsync always returns null
Problem is: I’ve seeded a few Roles to my database and expect to be able to fetch them, but RoleManager returns null even though there exists a role with given name in my database. The following line of code evaluates to null: var role = await roleManager.FindByNameAsync(“SuperAdmin”); // returns null However I can get the […]