I have created a "Auction.sitemap" instead of the default "web.sitemap" - But I can't run it.

L

Learner

Hello,
I just created "Auction.sitemap" instead of the default one
"web.sitemap" . And I think I will have to give the value of the
property "SiteMapProvider" as "Auction.sitemap" in the properties of
"SiteMapDataSource" control and I should be fine. But it always
complains

about "The SiteMapProvider 'Auction.sitemap' cannot be found. "


Am I trying to set it up to the right property ?

please help me .
Thanks
-L
 
D

Dominick Baier [DevelopMentor]

look in the sitemap section in global web.config - the name is hardcoded -

just copy this section to you local web.config and change the name.
 
L

Learner

Hello Dominick,
yes it works now after copy pasting the sitemap section in the local
webconfig and changing its SiteMapFile attribute. I thought it could
work just by setting up the property.

Thanks
-L
 
L

Learner

Hello Dominick,
I got a problem with this again. It was working yesterday because
"web.sitemap" file was existing int he solution explorere. After I
deleted this file and wanted use the customized one it was complaining
about the below error. I did copy sitemap section from the gloabl
web.confige file to my local web.config and its complaining about the
below error. Am I missing some thing here?

Thanks
-L


Server Error in '/GroundingDemo' Application.
--------------------------------------------------------------------------------

Configuration Error
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 entry 'AspNetXmlSiteMapProvider' has already
been added.

Source Error:


Line 101: <siteMap>
Line 102: <providers>
Line 103: <add siteMapFile="Grounding.sitemap"
name="AspNetXmlSiteMapProvider"
Line 104: type="System.Web.XmlSiteMapProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 105: </providers>


Source File: C:\Documents and Settings\devi\My Documents\Visual Studio
2005\WebSites\GroundingDemo\web.config Line: 103
 
L

Learner

Hello Dominick,
I got a problem with this again. It was working yesterday because
"web.sitemap" file was existing int he solution explorere. After I
deleted this file and wanted use the customized one it was complaining
about the below error. I did copy sitemap section from the gloabl
web.confige file to my local web.config and its complaining about the
below error. Am I missing some thing here?

Thanks
-L


Server Error in '/GroundingDemo' Application.
--------------------------------------------------------------------------------

Configuration Error
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 entry 'AspNetXmlSiteMapProvider' has already
been added.

Source Error:


Line 101: <siteMap>
Line 102: <providers>
Line 103: <add siteMapFile="Grounding.sitemap"
name="AspNetXmlSiteMapProvider"
Line 104: type="System.Web.XmlSiteMapProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 105: </providers>


Source File: C:\Documents and Settings\devi\My Documents\Visual Studio
2005\WebSites\GroundingDemo\web.config Line: 103
 
D

Dominick Baier [DevelopMentor]

hi,

give the provider another name or add a <clear /> statement right below the
<providers> element.

you have a duplicate name now in local and global web.config
 

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
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top