Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > I have created a "Auction.sitemap" instead of the default "web.sitemap" - But I can't run it.

Reply
Thread Tools

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

 
 
Learner
Guest
Posts: n/a
 
      05-05-2006
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

 
Reply With Quote
 
 
 
 
Dominick Baier [DevelopMentor]
Guest
Posts: n/a
 
      05-06-2006
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.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> 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
> -



 
Reply With Quote
 
 
 
 
Learner
Guest
Posts: n/a
 
      05-06-2006
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

 
Reply With Quote
 
Learner
Guest
Posts: n/a
 
      05-07-2006
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


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

 
Reply With Quote
 
Learner
Guest
Posts: n/a
 
      05-07-2006
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


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

 
Reply With Quote
 
Dominick Baier [DevelopMentor]
Guest
Posts: n/a
 
      05-07-2006
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

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> 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
>
> ----------------------------------------------------------------------
> ----------
> Version Information: Microsoft .NET Framework Version:2.0.50727.42;
> ASP.NET Version:2.0.50727.42



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Initial class name for Default page is _Default instead of Default Sean Dockery ASP .Net 3 06-21-2009 04:30 AM
Gridview encoding, or how to run commands before gridview's default databinding, or, how do I disable default databinding at all? Sergei Shelukhin ASP .Net 1 11-12-2006 01:43 PM
Exception in GUI Run but not in Simple RUN Andrea9 Java 1 10-20-2006 12:54 PM
are the objects created in the stack guarranted to have been created? jimjim C++ 12 06-03-2005 12:57 PM
I have created a website "lookup" i dont think its gonna get bigger and fancyer than it already is but have a look Rahmi Acar C++ 0 04-20-2004 10:18 PM



Advertisments