473,729 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The SiteMapProvider 'MySiteMap' cannot be found.

I've got a pretty basic sitemap setup, but am getting a runtime error: "The
SiteMapProvider 'MySiteMap' cannot be found."

This occurs only when I access my website under IIS 5.1. When I run my app
under the debugger (localhost:1946 ) I have no problem. I thought of trying
IIS6.0, but am running XP, so can't upgrade to 6.0. Any ideas?

my web.config relevant lines
<siteMap>
<providers>
<add name="MySiteMap " type="System.We b.XmlSiteMapPro vider, System.Web,
Version=2.0.360 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
siteMapFile="~/Web.sitemap"/>
</providers>
</siteMap>

Web.sitemap file:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microso ft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Home" url="~/default.aspx" description="Ho me">
<siteMapNode description="Ho meURL" title="Welcome" url="~/welcome.aspx" />
<siteMapNode description="Ab outUsUrl" title="About Us"
url="~/aboutus.aspx" />
</siteMapNode>
</siteMap>

user control containing reference to sitemapprovider :
<asp:SiteMapDat aSource ID="SiteMapData Source1" runat="server"
ShowStartingNod e="False" SiteMapProvider ="MySiteMap" />

The only other relevant detail is that the user control with the sitemap is
included in a master page, which is used by the page I'm referencing.

--
- Adrian
Aug 4 '06 #1
3 8020
Hi Adrian,

Just checking... Is your IIS5.1 Web set as an application? It might be that
"~/Web.sitemap" is making it look in a different root that you expect.

What happens if you use just

siteMapFile="We b.sitemap"/>

Ken
Microsoft MVP [ASP.NET]

"Adrian Sharp" <ad****@discuss ions.microsoft. comwrote in message
news:7D******** *************** ***********@mic rosoft.com...
I've got a pretty basic sitemap setup, but am getting a runtime error:
"The
SiteMapProvider 'MySiteMap' cannot be found."

This occurs only when I access my website under IIS 5.1. When I run my app
under the debugger (localhost:1946 ) I have no problem. I thought of trying
IIS6.0, but am running XP, so can't upgrade to 6.0. Any ideas?

my web.config relevant lines
<siteMap>
<providers>
<add name="MySiteMap " type="System.We b.XmlSiteMapPro vider,
System.Web,
Version=2.0.360 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
siteMapFile="~/Web.sitemap"/>
</providers>
</siteMap>

Web.sitemap file:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microso ft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Home" url="~/default.aspx" description="Ho me">
<siteMapNode description="Ho meURL" title="Welcome" url="~/welcome.aspx"
/>
<siteMapNode description="Ab outUsUrl" title="About Us"
url="~/aboutus.aspx" />
</siteMapNode>
</siteMap>

user control containing reference to sitemapprovider :
<asp:SiteMapDat aSource ID="SiteMapData Source1" runat="server"
ShowStartingNod e="False" SiteMapProvider ="MySiteMap" />

The only other relevant detail is that the user control with the sitemap
is
included in a master page, which is used by the page I'm referencing.

--
- Adrian

Aug 4 '06 #2
Thanks for your response Ken. I tried your suggestion; it didn't help.
However....

your post got me to thinking about my IIS settings, re: default website. It
seems that it was pointing to an old version of my app. I fixed this, and now
my sitemap is happy.

There's still something odd going on there, because I could see changes I
made (like renaming my sitemap provider) reflected in the error screen... but
I continued to get the error.

Thanks for the help.
--
- Adrian
"Ken Cox [Microsoft MVP]" wrote:
Hi Adrian,

Just checking... Is your IIS5.1 Web set as an application? It might be that
"~/Web.sitemap" is making it look in a different root that you expect.

What happens if you use just

siteMapFile="We b.sitemap"/>

Ken
Microsoft MVP [ASP.NET]

"Adrian Sharp" <ad****@discuss ions.microsoft. comwrote in message
news:7D******** *************** ***********@mic rosoft.com...
I've got a pretty basic sitemap setup, but am getting a runtime error:
"The
SiteMapProvider 'MySiteMap' cannot be found."

This occurs only when I access my website under IIS 5.1. When I run my app
under the debugger (localhost:1946 ) I have no problem. I thought of trying
IIS6.0, but am running XP, so can't upgrade to 6.0. Any ideas?

my web.config relevant lines
<siteMap>
<providers>
<add name="MySiteMap " type="System.We b.XmlSiteMapPro vider,
System.Web,
Version=2.0.360 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
siteMapFile="~/Web.sitemap"/>
</providers>
</siteMap>

Web.sitemap file:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microso ft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Home" url="~/default.aspx" description="Ho me">
<siteMapNode description="Ho meURL" title="Welcome" url="~/welcome.aspx"
/>
<siteMapNode description="Ab outUsUrl" title="About Us"
url="~/aboutus.aspx" />
</siteMapNode>
</siteMap>

user control containing reference to sitemapprovider :
<asp:SiteMapDat aSource ID="SiteMapData Source1" runat="server"
ShowStartingNod e="False" SiteMapProvider ="MySiteMap" />

The only other relevant detail is that the user control with the sitemap
is
included in a master page, which is used by the page I'm referencing.

--
- Adrian


Aug 4 '06 #3
Hi Adrian,

Glad to hear you got going anyway!

Ken
Microsoft MVP [ASP.NET]

"Adrian Sharp" <ad****@discuss ions.microsoft. comwrote in message
news:C7******** *************** ***********@mic rosoft.com...
Thanks for your response Ken. I tried your suggestion; it didn't help.
However....

your post got me to thinking about my IIS settings, re: default website.
It
seems that it was pointing to an old version of my app. I fixed this, and
now
my sitemap is happy.

There's still something odd going on there, because I could see changes I
made (like renaming my sitemap provider) reflected in the error screen...
but
I continued to get the error.

Thanks for the help.
--
- Adrian
"Ken Cox [Microsoft MVP]" wrote:
>Hi Adrian,

Just checking... Is your IIS5.1 Web set as an application? It might be
that
"~/Web.sitemap" is making it look in a different root that you expect.

What happens if you use just

siteMapFile="W eb.sitemap"/>

Ken
Microsoft MVP [ASP.NET]

"Adrian Sharp" <ad****@discuss ions.microsoft. comwrote in message
news:7D******* *************** ************@mi crosoft.com...
I've got a pretty basic sitemap setup, but am getting a runtime error:
"The
SiteMapProvider 'MySiteMap' cannot be found."

This occurs only when I access my website under IIS 5.1. When I run my
app
under the debugger (localhost:1946 ) I have no problem. I thought of
trying
IIS6.0, but am running XP, so can't upgrade to 6.0. Any ideas?

my web.config relevant lines
<siteMap>
<providers>
<add name="MySiteMap " type="System.We b.XmlSiteMapPro vider,
System.Web,
Version=2.0.360 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
siteMapFile="~/Web.sitemap"/>
</providers>
</siteMap>

Web.sitemap file:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microso ft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Home" url="~/default.aspx" description="Ho me">
<siteMapNode description="Ho meURL" title="Welcome"
url="~/welcome.aspx"
/>
<siteMapNode description="Ab outUsUrl" title="About Us"
url="~/aboutus.aspx" />
</siteMapNode>
</siteMap>

user control containing reference to sitemapprovider :
<asp:SiteMapDat aSource ID="SiteMapData Source1" runat="server"
ShowStartingNod e="False" SiteMapProvider ="MySiteMap" />

The only other relevant detail is that the user control with the
sitemap
is
included in a master page, which is used by the page I'm referencing.

--
- Adrian



Aug 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1542
by: RCS | last post by:
All, OK, so I'm working on a template for our new ASP.NET applications. Part of this, includes using the new menu and breadcrumbs control in ASP.NET 2.0 (I'm using beta 2). I put the hierarchy of the applications and navigation in a database, and am able to pull that into the app by inheriting StaticSiteMapProvider. So that's set and works great.
1
1297
by: RCS | last post by:
Does anyone know of a tabbed navigation control that supports SiteMapProvider (the same way the menu, breadcrumbs and treeview do in 2.0)?? I'm looking for www.amazon.com style tabbed navigation, but something that will plug it seamlessly with my exisitng navigation provider. Thanks!
0
1085
by: Thomas Bandt | last post by:
Hi, I wrote my own SiteMapProvider which fetches the data from a Sql Database (Navigation hierarchy). But this data (categories) could contain absolute external Urls (like http://google.com/) as well as duplicate Urls to the same local or external file. In both scenarios the runtime throws an exception. Is there a known workaround?
2
1928
by: dhurwitz | last post by:
Hi, I have written a custom SiteMapProvider to retrieve site map data from a SQL Server database table. It works fine when used as the data source for a Menu control, so I am confident that all the nodes are being correctly populated. However, when used with a TreeView control, only the first node displays. Any suggestions on why this might be the case? Thanks.
0
1419
by: ashish | last post by:
hello all, I am trying to create a custom site map provider and since my site map is very huge, I am loading the required nodes when the CurrentNode property is called.. I am wondering if this would be a performance bottleneck, since according to my understanding a single nstance of sitemapprovider is loaded for the app domain
1
4438
by: shapper | last post by:
Hello, How to make a SiteMapDataSource to use a SiteMapProvider defined in Web.Config? I think I should use something like: MySiteMapDataSource.Provider = ... However I don't know what to place in "...". I tried to use a string with the name of the provider but it didn't
0
1399
by: shapper | last post by:
Hello, I need to create a custom SiteMapProvider. I searched in Google for examples but I am still completly lost. The custom SiteMapProvider I need to create is exactly the same as the Asp.Net SiteMapProvider: The only difference is: attribute Visible = "True".
2
1635
by: Steve Harclerode | last post by:
Hi, I have implemented a working SiteMapProvider as shown on an msdn page: http://msdn.microsoft.com/en-us/library/ms178434(VS.80).aspx My question is: Can I make the TreeView that uses a SiteMapProvider show the heirarchy from the current node down, instead of from the root? My scenario is that I have a website with several thousand folders, each folder containing less than 100 pages. What I would like is that if you are
1
1484
by: =?Utf-8?B?QnJvb2s=?= | last post by:
Hey everyone, My scenario is as follows: In my website the users session id is constantly passed from page to page on the URL. I have one main menu that appears the same on each page, one of the menu items has a set of child items that only appear on hover over. Essentially, no matter which page the user is on, i want the user id to be appended to each of the urls in the menu. A further complication is that my child menu items are...
0
9284
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8151
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4528
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.