Wednesday, April 9, 2008

IsInRole issue with FormsAuthentication

If rolemanager is enabled in the web.config, the GenericPrinciple is automatically cast to RolePrincipal dismissing all of the GenericPrincipal's previous set roles. To disable this automatic cast, disable rolemanager in the web.config.

<rolemanager enabled = "false">

No comments: