Hi,
I'm using existing (generated) mechanism for login (i was created new web form - web application project).
I added tables for identity in my database and changed the conn string.
Functionality for registration works very fine, but when I log out, I can not log in again. I get the exception: System.Data.SqlClient.SqlException: Invalid column name 'User_Id'.
Nowhere in the code or database I dont have attribute or column with name "User_Id".
Line of error:
authenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);
Class of error: IdentityHelper
I did not change anything, except that I added this code
public class ApplicationRole : IdentityRole
{
public ApplicationRole() { }
}
public class ApplicationRoleManager : RoleManager<ApplicationRole>
{
public ApplicationRoleManager()
: base(new RoleStore<ApplicationRole>(new ApplicationDbContext()))
{
}
}
in IdentityModels.cs for managing user rules.
Does anyone have any idea for fix this problem? Thanks