CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/20/2006 3:06:56 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 42 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
TATWORTH
Asp.Net User
Problem with Multiple Sitemaps9/20/2006 3:06:56 PM

0

I need to switch between two sitemaps within a VS2005 web application website.

In my web.config file I have:

        <siteMap defaultProvider="XmlSiteMapProvider">
            <providers>
                <add
                  name="AdminSiteMap"
                  type="System.Web.XmlSiteMapProvider"
                  siteMapFile="~/Master/Admin.sitemap" />
                <add
                  name="UserSiteMap"
                  type="System.Web.XmlSiteMapProvider"
                  siteMapFile="~/Master/User.sitemap" />
            </providers>
        </siteMap>

 Both Admin.sitemap and User.sitemap are valid XML files (as proved by opening them in IE6).

When I run the the site, I got:

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 provider 'XmlSiteMapProvider' specified for the defaultProvider does not exist in the providers collection.

Source Error:

Line 25:         -->
Line 26: <!-- -->
Line 27: <siteMap defaultProvider="XmlSiteMapProvider">
Line 28: <providers>
Line 29: <add

Source File: C:\XXXXXXXXXXXXX\web.config    Line: 27
 

If I comment out the <site Map .../> block, the the starts with its default Web.sitemap with the default menu displayed correctly. I cannot readily use the ASP.NET 2.0 User/Role model as the system architecture is to use web service data access. Since XmlSiteMapProvider is the default source, why is it not being found?

Changing

<siteMap defaultProvider="XmlSiteMapProvider">
to
<siteMap>
fixed the problem! Yes Why should removing the reference to the provider fix the problem? Confused



Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
lostlander
Asp.Net User
Re: Problem with Multiple Sitemaps9/21/2006 4:27:06 AM

0

As the error message indicated clearly, because the providername "XmlSiteMapProvider" doesn't exist ( You never configured such a provider in your web.config ).  Actually, "XmlSiteMapProvider" is a provider type, not a provider name.

You should configure the defaultProvider like this:

        <siteMap defaultProvider="AdminSiteMap">
            <providers>
                <add
                  name="AdminSiteMap"
                  type="System.Web.XmlSiteMapProvider"
                  siteMapFile="~/Master/Admin.sitemap" />
                <add
                  name="UserSiteMap"
                  type="System.Web.XmlSiteMapProvider"
                  siteMapFile="~/Master/User.sitemap" />
            </providers>
        </siteMap>

See for the detailes: http://msdn2.microsoft.com/en-us/library/1e333zt4.aspx

Regards.
lostlander.

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Sams Teach Yourself Dreamweaver UltraDev 4 in 21 Days: UltraDev 4 Authors: John Ray, Pages: 767, Published: 2000
SEO - Search Engine Optimization Bible: Search Engine Optimization Bible Authors: Jerri L. Ledford, Pages: 389, Published: 2007
The Design of Sites: Patterns For Creating Winning Web Sites Authors: Douglas K. Van Duyne, James A. Landay, Jason I. Hong, Pages: 981, Published: 2006
Gardener's Problem Solver: Hundreds of Expert Answers to Real-Life Gardening Dilemmas Authors: Miranda Smith, Pages: 192, Published: 2004
Handbook of Human Factors in Web Design Authors: Robert W. Proctor, Kim-Phuong L. Vu, Pages: 738, Published: 2005
Environmental Decision Support Software Authors: unknown, Pages: 0, Published: -1
The Cambridge Handbook of Multimedia Learning Authors: Richard E. Mayer, Pages: 663, Published: 2005
Cocoon 2 Programming: Web Publishing with XML and Java Authors: William B. Brogden, Conrad D'Cruz, Mark Gaither, Pages: 362, Published: 2002

Web:
How to: Configure Multiple Site Maps and Site-Map Providers By default, ASP.NET site navigation works with an XML file that is named Web. sitemap that describes the hierarchy of the Web site.
How to handle multiple sitemaps for different treeviews - ASP.NET ... This creates a problem. What if I want to use different “sitemaps” .... If you open up VWD help and type “Multiple sitemaps” in “Search”, ...
Official Google Webmaster Central Blog: Multiple Sitemaps in the ... Oct 9, 2006 ... We've gotten a few questions about whether you can put multiple Sitemaps in the same directory. Yes, you can! ...
Implementing multiple sitemaps Oct 25, 2007 ... This article explains how to control the display of nodes for different user, while using treeviews and sitemaps.
CodeProject: Using Multiple Sitemap Files in ASP.NET 2.0. Free ... Your link leads to a good explanation of the built in features for switching between multiple Sitemaps, by defining multiple SiteMapProviders in Web.config ...
Can I submit multiple Sitemaps at once? - Webmaster Help Center You can provide multiple Sitemap files, but each Sitemap file that you ... If you do provide multiple Sitemaps, you can list them in a Sitemap index file. ...
registering multiple sitemap files Talk about registering multiple sitemap files. ... I am trying to use multiple sitemaps within my site as described in the ...
Duplicate Sitemaps Should Not Cause a Problem with Google Jul 16, 2008 ... Well, the only way for multiple Google Accounts to. ... Having separate Sitemaps with similar URLs for each site owner is not a problem. ...
[2005] Sitemap problem [Archive] - VBForums [Archive] [2005] Sitemap problem ASP.NET. ... I do really need multiple sitemap because in my website, I have an administrator account and ...
Configuring Multiple Sitemaps in .NET « Tech Dec 7, 2007 ... In this case we can use multiple sitemaps to display the appropriate menu based on user ... Show Hidden Files Issue / Problem (due to Virus) ...

Videos:
Mark Ress Money Making Niche Sites for Site Flipping & VRE http://hopurl.com/47783 http://www.vrecoach.com/mini-niche-sites/index.htm Mark Ress introduces his MONEY MAKING Niche sites. Let Me and My Team Cre...
Home based internet marketing business:Easy to use Auto Responder Software for 7.7 US Dollars. Buy Online Now. Top offer online offer.Marketing made easy. http://mymessagevideos.com/component/option,com_docman/Itemid,39/ . http://www.youtube.com/results?search_query=google+sitemap+generator+software&sea...
Google for Webmasters Tutorial: Intro to Webmaster Central A webmaster tutorial video that introduces what Webmaster Central offers.
(Arbonne International Complaints)*WARNING!!AVOID THIS PROGRAM IMMEDIATELY!!!** http://www.CreatorstoWealth.com Charlie Deleon Guerrero arbonne international complaints (arbonne international complaints) "arbonne international co...
Affiliate Summit 2006 East -- Straight Talk on Search Engine Optimization Brief presentation on Search Engine Optimization with a heavy focus on Q&A. A very open, honest and straight to the point discussion about search eng...






how to rebind parent page datagrid when in a popup

hiding controls in form master when certain contents loaded?

master page and menu control - menu renders improperly - please help me !!

masterpage, multiview and ajax!

master page call?

encryp & decrypt querystring

setting the content of a contentplaceholder

set body id on master page

treeview expand depth

master page help

update panel an flash object

expand a tree view parent node when node text is selected

masterpages & login pages

dynamically include onload script block on master

how to create a function?

can not change treeview properties programmaticaly

using master page controls within the code of the content page

exposing asp.net menu properties in a masterpage

asp menu control display problem in ie

custom class for dynamically setting head content

sitemappath & query string problems

need help with including a link button on a master page.

asp.net 2.0 treeview indentation problems

building a query string from page and masterpage

treeview - change line colour?

textbox id from the repeater control inside a master page

menu control behaving absurdly on sorting a grid on the page

wizard control

theming tableheaderrow inside table

detecting from masterpage if page loads a certain control

   
  Privacy | Contact Us
All Times Are GMT