Hello,
Is there a way to get all Roles fo the current user? I tried the following:
((RolePrincipal)HttpContext.Current.User).GetRoles()
But I get the following error:
Unable to cast object of type 'System.Security.Principal.GenericPrincipal' to type 'System.Web.Security.RolePrincipal'.
Any idea how to get the user roles?
Thank You,
Miguel
...
Go to the complete details ...