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)

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay