By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,470 Members | 949 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,470 IT Pros & Developers. It's quick & easy.

Membership, Roles, & SiteMap

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.