DEV Community

artarya
artarya

Posted on

Error " Object reference not set to an instance of an object." when debug in visual studio 2022

I get this error when I debug the project I tried line by line, I think that when it wants to create a database with ApplicationDbContext, it can't and it shows this error. The error occurs in the code below

    public class ApplicationRoleManager : RoleManager<ApplicationRole>
{
    public ApplicationRoleManager(IRoleStore<ApplicationRole, string> store)

Top comments (0)