470,815 Members | 1,145 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Membership, Roles, & SiteMap


I have built a web application with authentication modeled after the
following video by Scott Guthrie:


So I have a site map, a treeview control on a page that binds to the
sitemap. I only want certain items on there to be available for certain roles.

I have the following in my web.config:

<siteMap defaultProvider="default" enabled="true">
<add name="default" siteMapFile="Web.sitemap"
type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"/>

I have setup the access rules via the ASP.Net configuration tool.

Here is the thing, even if I allow anonymous NOTHING shows up in the
treeview control that is bound to the sitemap. However, if I set
securityTrimmingEnabled to false then I see everything. So in my case it is
an all or nothing situation.

Roles are setup appropriately, I log into my site as with a user account I
created that is in the administrators role I created. That role has an access
rule that allows all access to the site. So I should have access to anything,
therefore the treeview control should show the items from the sitemap.

Any ideas why I loose anything from the sitemap showing in the treeview
control if I set securityTrimmingEnabled to true?

May 31 '06 #1
0 1295

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Demetri | last post: by
reply views Thread by rmgalante | last post: by
4 posts views Thread by AC | last post: by
reply views Thread by Chris | last post: by
1 post views Thread by =?Utf-8?B?ZVByaW50?= | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.