I have been experimenting with MVC5/EF6 and trying out the new Identity Authentication with Code-First Migrations. Everything in the solution is currently building and I can
This saved my 2nd day . Thanks @Daffy Punk. In my case the issue was password. which was "abc" before.
var studentPassword = "abcABC_9";
var user = new ApplicationUser { UserName = "abc", Email = 1@gmail.com };
var UserManager = new UserManager(new UserStore(context));
var result = await UserManager.CreateAsync(user, studentPassword.ToString());
await UserManager.AddToRoleAsync(user.Id, "Student");