I feel like I've wasted the last two days. I have been using Membership for many years. It works great and I am comfortable with it.
I decided to give Identity a try using the webforms templates in VS2013. This has been a frustrating waste of time.
It was easy to 'register' a user. The database tables were automatically generated as expected. But, as soon as I wanted to implement rudimentary roles, the training wheels came off.
Since there is basically no clear examples or tutorials for using identity with VB, I was finally able to get this put together:
'Dim Role As New IdentityRole
'Dim roleStore = New RoleStore(Of IdentityRole)()
'Dim manager = New RoleManager(Of IdentityRole)(roleStore)
'Role.Name = "Admin"
'manager.Create(Role)
Dim myUser = New ApplicationUser() With {.UserName = "XXXXX"}
Dim userStore = New UserStore(Of ApplicationUser)(New ApplicationDbContext( ...
Go to the complete details ...