MVC5: UserManager.AddToRole(): “Error Adding User to Role: UserId not found”?
问题 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 add a Migration , but when I perform an update-database through the package manager console in VS2013, my Configuration.cs file fails to fully process my test data into my Tables and outputs Error Adding User to Role: UserId not found . I have tried explicitly setting a User ID and leaving it to be generated by the