In my web.config
<LOCATION path="MYDIR">
<SYSTEM.WEB>
<AUTHORIZATION>
<DENY users="*">
<ALLOW roles="Allowed_User_Role">
</AUTHORIZATION>
</SYSTEM.WEB>
</LOCATION>
In my web.sitemap
<SITEMAPNODE title="My Page" description="My Page" url="~/MYDIR/mypage.aspx" roles="Allowed_User_Role" />
What I want to happen:
- I don't want the SiteMapNode in my TreeView to show to users not in the Allowed_User_Role. This works.
- If an ~unauthenticated~ user goes to ~/MYDIR/mypage.aspx it redirects to the login page. This works.
- An ~authenticated~ user in the Allowed_User_Role sees the SiteMapNode option in my TreeView and can successfully access ~/MYDIR/mypage.aspx. This also works.
- An ~authenticated~ user NOT in the Allowed_User_Role does not see the SiteMapNode option in my TreeView. This works too.
- An ~authenticated~ user NOT in the Allowed_User_Role tries to go to ~/MYDIR/mypage.aspx. I want to redirect this user somewhere and say, "Don't do that." This ~doesn't~ work. I just get a "The page cannot be displayed" in IE and a "The page isn't redirecting properly. Navigator has detected that the server is redirecting the request for this address in a way that will never complete." in Netscape.
Any ideas?
Thanks,
- Bob Archer