Web.config - site map path

C

Chanaka_2005

when i past the following code in web.config file it says attributes are not
declaired

<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<add name="XmlSiteMapProvider"
description="SiteMap provider which reads in .sitemap XML
files."
type="System.Web.XmlSiteMapProvider, System.Web,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="web.sitemap"
securityTrimmingEnabled="true"/>
</providers>
</siteMap>
<compilation defaultLanguage="C#"/>
thnx
 
B

Brock Allen

The provider model allows for arbitrary attributes when you configure them.
The web.config XML schema can't possibly know every attribute that will ever
be used, so it's misleading. It should run fine, and that's the important
thing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top