添加了自定义的ApplicationDbContext 和ApplicationUser ,并添加了Identity认证后,会出现

InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' 错误

需要在解决方案中搜索IdentityUser,把相关网页上注入的IdentityUser改为ApplicationUser

相关文章:

  • 2021-12-17
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2022-02-03
  • 2021-05-30
猜你喜欢
  • 2022-12-23
  • 2021-11-24
  • 2022-01-25
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
相关资源
相似解决方案