CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 11/5/2007 6:54:11 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 94 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
Colonel Angus
Asp.Net User
SiteMapProvider cannot be found11/5/2007 6:54:11 PM

0/0

I have a sitemap file in the root of my project and a provider defined in the sitemap providers section of web.config.  However, when I access the page the error "The SiteMapProvider 'Web.sitemap' cannot be found" is returned.  Is there a step I am missing?

The web.config looks like this:

<siteMap>
    <providers>
           <add siteMapFile="Web.sitemap" name="SiteMap1" type="System.Web.XmlSiteMapProvider"/>
    </providers>
</siteMap>

 
Burldo
Asp.Net User
Re: SiteMapProvider cannot be found11/5/2007 7:54:10 PM

0/0

If you are using the default provider, try this...

<siteMap>
    <providers>
           <add siteMapFile="Web.sitemap" name="AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    </providers>
</siteMap>

Colonel Angus
Asp.Net User
Re: SiteMapProvider cannot be found11/6/2007 2:00:14 PM

0/0

That throws a configuration error, "The entry 'AspNetXmlSiteMapProvider' has already been added"

Burldo
Asp.Net User
Re: SiteMapProvider cannot be found11/6/2007 2:47:55 PM

0/0

Sounds like a duplicate entry, add a clear to the statement just below providers....

<siteMap>
    <providers>

<clear/>
           <add siteMapFile="Web.sitemap" name="AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    </providers>
</siteMap>

Colonel Angus
Asp.Net User
Re: SiteMapProvider cannot be found11/6/2007 3:07:22 PM

0/0

That takes care of the configuration error, but it still cannot find the provider.

I also should mention that this is in a MasterPage and I have a SiteMapDataSource and TreeView control on it.  In the Page_Load event of the MasterPage, I have the statement

SiteMapDataSource1.SiteMapProvider = "Web.sitemap"

Not sure if this is helpful, but it's full disclosure. 

 

 

Burldo
Asp.Net User
Re: SiteMapProvider cannot be found11/6/2007 3:24:06 PM

0/0

You need the name of the provider "AspNetXmlSiteMapProvider", not the siteMap.....

Burl

 

Colonel Angus
Asp.Net User
Re: SiteMapProvider cannot be found11/6/2007 3:33:03 PM

0/0

Thank you, that was it all along.  I hate it when I miss the solution staring me in the face.  Again, thanks for your help.

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


Free Download:


Web:
The SiteMapProvider 'MySiteMap' cannot be found. Talk about The SiteMapProvider 'MySiteMap' cannot be found.
The SiteMapProvider 'MySiteMap' cannot be found. The SiteMapProvider 'MySiteMap' cannot be found. - Microsoft ASP .NET. Visit our forum to discuss The SiteMapProvider 'MySiteMap' cannot be ...
The SiteMapProvider 'MySiteMap' cannot be found. - .NET ASP The SiteMapProvider 'MySiteMap' cannot be found.. Get answers to your questions in our .NET ASP forum.
The SiteMapProvider 'MySiteMap' cannot be found. SiteMapProvider 'MySiteMap' cannot be found." This occurs only when I access my website under IIS 5.1. When I run my app ...
-- SiteMapProvider class - ASP.NET Forums But I have always this error : Exception Details: System.Web.HttpException: The SiteMapProvider 'MySiteMapProvider' cannot be found. ...
I'm having a helluva time registering a custom sitemap provider ... The SiteMapProvider cannot be found. As an assembly (which I have in Bin), I get "could not load type x from assembly" . ...
mojoPortal - Forums - Report Bugs - The SiteMapProvider ... The SiteMapProvider 'mojosite11' cannot be found. ... The SiteMapProvider ' mojosite12' cannot be found. Is there something what I do wrong, ...
TheMSsForum.com >> Asp >> The SiteMapProvider 'MySiteMap' cannot ... Where can i find the controls that i have dropped into this final step of the createuser wizard? Tag: The SiteMapProvider 'MySiteMap' cannot be found. ...
Sharepoint general WSS 3.0 Error "The SiteMapProvider ... Nov 21, 2007 ... The SiteMapProvider 'SPXmlAdminContentMapProvider' cannot be found. Description: An unhandled exception occurred during the execution of the ...
SiteMapProvider Class (System.Web) Public Overrides ReadOnly Property RootProvider() As SiteMapProvider Get ' If the current instance belongs to a provider hierarchy, it ' cannot be the ...




Search This Site:










login control - can i clear the username on login failure?

open url in new window

web site administration tool

bug tracker?

forcing the user to logon

treeview in asp.net?

future of ttt authentication module?

control must be in server form

protecting content

object level security - where do i get information?

publishform appearing multiple times on taskbar

good book suggestions for learning .net 3.5 and vs 2008

does visual studio 2005 fully support application developed with asp.net 1.1 ?

editing web.sitemap at runtime

new module - feedback please!

good idea? moving data from web.config to the machine.config

installer: text turning black on error.

help, i need to pass on user name and password to sql

user and custom ctrl

do i have to disable membership if i don't want to use it? there is no "enable=false" property with it

club db not showing in server explorer

is it possible to call aspx from asp ?

menu control, statichoverstyle issue with image background

change expiration time from days/weeks to hours

xml data editor

syntax error in store procedure

problems getting a dropdownlist.selectedvalue in a wss toolpart

ddos attack

regarding aspnetdb.mdb

creating object data sources in the style of the existing ones

 
All Times Are GMT