Hoping someone can assist this has been a challenge. I am new to the Identity "way" of doing member login so please be patient.
- login, register all work fine
when I login, I would like to see if the user is admin or not
If Not Roles.IsUserInRole(User.Identity.Name, "admin") Then rUser.Text = "You are not authorized" Else rUser.Text = "WELCOME ADMIN" End If
When I run the app, I get the error Screenshot of Error (not enabled)
I have looked at many articles and this should "just work". for some reason this just isn't working.
Using framework 4.5, VB.NET, VS 2013, built in IDENTITY.