Author: craftyguy | Posted on: 6/3/2010 12:58:56 PM | Views : 251

I am not able to allow/deny users based on roles in the web.config (using <location path>). The following does not work even if the user is in the 'Admin' role: <location path="Admin" > <system.web> <authorization> <allow roles="Admin" /> <deny users="*" /> </authorization> </system.web> </location>

 I am able successfully execute IsUserInRole() and GetRolesForUser() in the codebehind and get expected results. The same applies to the web.sitemap, adding roles in there do not seem to apply to the user even if he is a member of the role.


Here is my web.config (trimmed some sections out so it's not too long):<?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="system.web.extensions" ...

Go to the complete details ...