I just spent over an hour to find out why this is happening. The solution is very simple. You just need to install the Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore package. That's it. I have no idea why Microsoft didn't add that to the Identity package. It's weird but it is what it is. Hope you find this helpful. :)