<div class="userinput"> I can't understand this if I use name = DefaultConnection as in this example here it works <connectionStrings> but if I instead change name from DefaultConnection to MyConnection as in this example <connectionStrings>
I get this error {"Invalid column name 'Email'.\r\nInvalid column name 'EmailConfirmed'.\r\nInvalid column name 'PhoneNumber'.\r\nInvalid column name 'PhoneNumberConfirmed'.\r\nInvalid column name 'TwoFactorEnabled'.\r\nInvalid column name 'LockoutEndDateUtc'.\r\nInvalid column name 'LockoutEnabled'.\r\nInvalid column name 'AccessFailedCount'.\r\nInvalid column name 'Email'.\r\nInvalid column name 'EmailConfirmed'.\r\nInvalid column name 'PhoneNumber'.\r\nInvalid column name 'PhoneNumberConfirmed'.\r\nInvalid column name 'TwoFactorEnabled'.\r\nInvalid column name 'LockoutEndDateUtc'.\r\nInvalid column name 'LockoutEnabled'.\r\nInvalid column name 'AccessFailedCount'.\r\nInvalid column name 'UserId'.\r\nInvalid column name 'UserId'.\r\nInvalid column name 'Email'.\r\nInvalid column name 'EmailConfirmed'.\r\nInvalid column name 'PhoneNumber'.\r\nInvalid column name 'PhoneNumberConfirmed'.\r\nInvalid column name 'TwoFactorEnabled'.\r\nInvalid column name 'LockoutEndDateUtc'.\r\nInvalid column name 'LockoutEnabled'.\r\nInvalid column name 'AccessFailedCount'."}
The code is below and the error occurs when this row executes IdentityResult result = manager.Create(user, Password.Text); //I just create a new user my enter username password and confirm password var user = new IdentityUser() { UserName = UserName.Text }; if(result.Succeeded)
So why is it not possible to use another name then DefaultConnection
//tony </div> |
↧
I get error when I use myConnection insted of DefaultConnection
↧