'中的服务器错误/';应用程序c#MVC5登录

'中的服务器错误/';应用程序c#MVC5登录,c#,visual-studio-2013,asp.net-mvc-5,C#,Visual Studio 2013,Asp.net Mvc 5,我正在尝试登录,这是我遇到的错误 列名“UserId”无效。 列名“UserId”无效。 列名“RoleId”无效 Line 415: { Line 416: AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie); Line 417: var identity = await UserManager.CreateIdentityAsync(user

我正在尝试登录,这是我遇到的错误

列名“UserId”无效。 列名“UserId”无效。 列名“RoleId”无效

Line 415:        {
Line 416:            AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);
Line 417:            var identity = await UserManager.CreateIdentityAsync(user, DefaultAuthenticationTypes.ApplicationCookie);
Line 418:            AuthenticationManager.SignIn(new AuthenticationProperties() { IsPersistent = isPersistent }, identity);
Line 419:        }
描述:执行当前web请求期间发生未处理的异常。请查看堆栈跟踪以了解有关错误的更多信息以及错误在代码中的起源

异常详细信息:System.Data.SqlClient.SqlException:列名“UserId”无效。 列名“UserId”无效。 列名“RoleId”无效

Line 415:        {
Line 416:            AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);
Line 417:            var identity = await UserManager.CreateIdentityAsync(user, DefaultAuthenticationTypes.ApplicationCookie);
Line 418:            AuthenticationManager.SignIn(new AuthenticationProperties() { IsPersistent = isPersistent }, identity);
Line 419:        }

我试着用给定的表在备份上乱搞,但毫无结果。我不知道此错误消息来自何处。

您是否使用已安装的所有NuGet软件包的最新版本?例如,如果您最近升级到较新版本的
AspNet.Identity
,他们会更改其用于添加更多字段的基础数据库架构,因此您可能需要迁移成员数据库。是的,所有内容都是最新版本。虽然我刚刚切换了数据库,因此必须通过EDMX脚本生成数据库。除了这个奇怪的地方,一切正常