467,875 Members | 1,418 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Membership, Roles, & SiteMap

Hello,

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

http://download.microsoft.com/downlo...-nav_FINAL.wmv

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">
<providers>
<clear/>
<add name="default" siteMapFile="Web.sitemap"
type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"/>
</providers>
</siteMap>

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?

--
-Demetri
May 31 '06 #1
  • viewed: 1212
Share:

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
By using this site, you agree to our Privacy Policy and Terms of Use.