小编Man*_*nny的帖子

SqlException:无效的列名“NormalizedName”。列名“ConcurrencyStamp”无效。列名“NormalizedName”无效

为什么在 .NET Core Identity 上使用 PasswordSignInAsync 时出现异常? Microsoft.AspNetCore.Identity

await _signInManager.PasswordSignInAsync(user.UserName, Input.Password, Input.RememberMe, lockoutOnFailure: false);

An unhandled exception occurred while processing the request.
SqlException: Invalid column name 'NormalizedName'.
Invalid column name 'ConcurrencyStamp'.
Invalid column name 'NormalizedName'.
Microsoft.Data.SqlClient.SqlCommand+<>c.<ExecuteDbDataReaderAsync>b__164_0(Task<SqlDataReader> result)
Run Code Online (Sandbox Code Playgroud)

我可以创建用户,重置密码等等。'NormalizedName甚至不是 的一部分 Microsoft.AspNetCore.Identity。所有列都存在于我的表中

select LockoutEnd, TwoFactorEnabled, PhoneNumberConfirmed, PhoneNumber, ConcurrencyStamp, SecurityStamp, 
PasswordHash, EmailConfirmed, NormalizedEmail, Email, NormalizedUserName, UserName, Id, LockoutEnabled, AccessFailedCount
from [dbo].[AspNetUsers]
Run Code Online (Sandbox Code Playgroud)

asp.net asp.net-identity asp.net-core

4
推荐指数
1
解决办法
3109
查看次数

标签 统计

asp.net ×1

asp.net-core ×1

asp.net-identity ×1