Menhythien
code generator: Exception type "System.InvalidOperationException"
I have fixed it. The issue was caused by adding both NuGet packages: Microsoft.AspNetCore.Identity.EntityFrameworkCore and Microsoft.AspNetCore.Identity. The tools didn’t know which IdentityUser to use for scaffolding. By deleting the lower version of the NuGet package, the problem was resolved.
3 replies