Unrecognized attribute ‘securityTrimmingEnabled’. Note that attribute names are case-sensitive.

I have a web site in ASP.NET using sitemap to provide navigation link.

To apply link roles in the site map the option securityTrimmingEnabled generate an error : Unrecognized attribute ‘securityTrimmingEnabled’. Note that attribute names are case-sensitive.

<siteMapNode url= »~/Default.aspx » title= »Home »  description= »Home Page »>
<siteMapNode url= »~/admin » title= »Admin »  roles= »Admin » description= »Administration menus »>
<siteMapNode url= »~/admin/adminGroups.aspx »  roles= »Admins » title= »Groups »  description= »Groups Administration » >
<siteMapNode url= »~/admin/createGroups.aspx » roles= »Admins » title= »Create »  description= »Create Groups » />
<siteMapNode url= »~/admin/deleteGroup.aspx » roles= »Admins » title= »Delete »  description= »Delete Groups » />
</siteMapNode>
</siteMapNode>

To resolve this problem I added this section in the web.config file :

<siteMap defaultProvider= »XmlSiteMapProvider » enabled= »true »>
<providers>
<clear/>
<add name= »XmlSiteMapProvider »
description= »Default SiteMap provider. »
type= »System.Web.XmlSiteMapProvider »
siteMapFile= »Web.sitemap »
securityTrimmingEnabled= »true » />
</providers>
</siteMap>

Hope that can help you !

You can leave a response, or trackback from your own site.

Leave a Reply

La modération des commentaires est activée. Votre commentaire peut prendre un certain temps avant d'apparaître.

Powered by WordPress | Find BlackBerry Phones for Sale Online. | Thanks to Top Bank CD Rates, Free MMORPG Games and Home Information Packs