添加了自定義的ApplicationDbContext 和ApplicationUser ,並添加了Identity認證後,會出現it
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' 錯誤io
須要在解決方案中搜索IdentityUser,把相關網頁上注入的IdentityUser改成ApplicationUser搜索