Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 22, 2012 05:40 PM by M.Asadi
Apr 14, 2012 06:36 AM|LINK
I customized membership &
I want to add access in one of the project folders
in the main web.config:
and in the folder web.config:
<deny users="?" />
but it doesn't work
I logged with 2 users, one in admin role one in other roles
it blocks both users and remains message "URL authorization failed for the request. " in event viewer
When I changed
<allow roles="admin"/> to
it work OK for this user
but I want to allow this role not only this user
Apr 14, 2012 06:54 AM|LINK
<allow roles="admin" />
Apr 14, 2012 07:06 AM|LINK
I changed it as you said
bot user type(=admin & non admin) can access to this form
Apr 14, 2012 07:24 AM|LINK
Download this complete sample with source code and use that as reference:
Also there is a PDF
Apr 14, 2012 08:06 AM|LINK
define your root web.config like mentioned below
And define web.config in folder as
Forms Authentication ticket for more info
Apr 14, 2012 08:07 AM|LINK
tnx for replying
I saw it (but not usefull).
I think some bad things happenning in my
customized role or membership.
because when I changed the role(admin) to the user(admin) it works good & only this user has permission.
how can I trace the access configured in web.config & solve this problem?
no error are shown anywhere.
I checked the role of this user by this method & it returns true: new Membership.CRoleProvider().IsUserInRole("Admin", "admin")
Apr 14, 2012 08:12 AM|LINK
I did as U said but all user=admin+ non admin can not access to this folder
Apr 15, 2012 07:30 AM|LINK
Nobody has any idea?
Only I want to trace the cotsum role & Membership. How can I do?
Apr 16, 2012 12:34 AM|LINK
maybe this can help you
I tried this as my reference :)