Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > registering multiple sitemap files

Reply
Thread Tools

registering multiple sitemap files

 
 
-D-
Guest
Posts: n/a
 
      07-22-2006
I am trying to use multiple sitemaps within my site as described in the
following MSDN article:
http://msdn2.microsoft.com/en-us/library/ms178426.aspx

I tried adding the following to the web.config file:

<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="ConnectionString" value="Password=xxxxx;Persist Security
Info=True;User ID=username;Initial Catalog=DBName;Data Source=SERVERNAME" />
</appSettings>
<system.web>
<siteMap defaultProvider="XmlSiteMapProvider">
<providers>
<add name="TopNavigationBar" type="System.Web.XmlSiteMapProvider"
siteMapFile="~/NavigationMenus/TopNavigationBar.sitemap" />
<add name="LeftNavigationBar"type="System.Web.XmlSiteMa pProvider"
siteMapFile="~/NavigationMenus/LeftNavigationBar.sitemap" />
</providers>
</siteMap>
<compilation debug="true"/>
<authentication mode="Windows"/>
</system.web>
</configuration>

But, I recieved the following error: the provider 'XmlSiteMapProvider'
specified for the defaultProvider does not exist in the providers
collection.

Where did I go wrong?


 
Reply With Quote
 
 
 
 
-D-
Guest
Posts: n/a
 
      07-23-2006
Please disregard....I figured it out.


"-D-" <> wrote in message
news:...
> I am trying to use multiple sitemaps within my site as described in the
> following MSDN article:
> http://msdn2.microsoft.com/en-us/library/ms178426.aspx
>
> I tried adding the following to the web.config file:
>
> <?xml version="1.0"?>
> <configuration

xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
> <appSettings>
> <add key="ConnectionString" value="Password=xxxxx;Persist Security
> Info=True;User ID=username;Initial Catalog=DBName;Data Source=SERVERNAME"

/>
> </appSettings>
> <system.web>
> <siteMap defaultProvider="XmlSiteMapProvider">
> <providers>
> <add name="TopNavigationBar" type="System.Web.XmlSiteMapProvider"
> siteMapFile="~/NavigationMenus/TopNavigationBar.sitemap" />
> <add name="LeftNavigationBar"type="System.Web.XmlSiteMa pProvider"
> siteMapFile="~/NavigationMenus/LeftNavigationBar.sitemap" />
> </providers>
> </siteMap>
> <compilation debug="true"/>
> <authentication mode="Windows"/>
> </system.web>
> </configuration>
>
> But, I recieved the following error: the provider 'XmlSiteMapProvider'
> specified for the defaultProvider does not exist in the providers
> collection.
>
> Where did I go wrong?
>
>



 
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
Re: registering/re-registering ASP.NET 1.1.4322 with IIS Juan T. Llibre ASP .Net 2 12-16-2006 12:29 AM
Can Sitemap.CurrentNode use non default sitemap provider? AmitKu ASP .Net 1 09-27-2006 12:25 PM
Multiple web.sitemap files and selection of current node MS Development ASP .Net 0 09-01-2006 09:54 PM
I have created a "Auction.sitemap" instead of the default "web.sitemap" - But I can't run it. Learner ASP .Net Security 5 05-07-2006 03:37 PM
Text files read multiple files into single file, and then recreate the multiple files googlinggoogler@hotmail.com Python 4 02-13-2005 05:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57