newbie: Configuration Error!

J

Jeff

hey

asp.net 2.0

I got an configuration error in my web.config file:

Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: The provider 'XmlSiteMapProvider' specified for the
defaultProvider does not exist in the providers collection.

Source Error:

Line 12: <connectionStrings/>
Line 13: <system.web>
Line 14: <siteMap defaultProvider="XmlSiteMapProvider">
Line 15: <providers>
Line 16: <add


This is part of my web.config file:
<siteMap defaultProvider="XmlSiteMapProvider">
<providers>
<add
name="SidebarMenuA"
type="System.Web.XmlSiteMapProvider"
siteMapFile="~/loggedin.sitemap"/>
<add
name="Company2SiteMap"
type="System.Web.XmlSiteMapProvider"
siteMapFile="~/unato.sitemap" />
</providers>
</siteMap>

The .sitemap files are placed in the root of the project

I'm trying to learn how to use 2 .sitemap files. One .sitemap file contains
menu items for loggedin users, and the other .sitemap file contains
menuitems for unauthorized people - maybe what I'm doing above is wrong if
this is the goal, so please correct me.. I'm just a newbie....

Any suggestions on how to solve my configuration error is very welcome!

Jeff
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top