G
Guest
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.Web.XmlSiteMapProvider, System.Web,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="~/Web.sitemap"/>
</providers>
</siteMap>
Web.sitemap file:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Home" url="~/default.aspx" description="Home">
<siteMapNode description="HomeURL" title="Welcome" url="~/welcome.aspx" />
<siteMapNode description="AboutUsUrl" title="About Us"
url="~/aboutus.aspx" />
</siteMapNode>
</siteMap>
user control containing reference to sitemapprovider:
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
ShowStartingNode="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.
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.Web.XmlSiteMapProvider, System.Web,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="~/Web.sitemap"/>
</providers>
</siteMap>
Web.sitemap file:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Home" url="~/default.aspx" description="Home">
<siteMapNode description="HomeURL" title="Welcome" url="~/welcome.aspx" />
<siteMapNode description="AboutUsUrl" title="About Us"
url="~/aboutus.aspx" />
</siteMapNode>
</siteMap>
user control containing reference to sitemapprovider:
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
ShowStartingNode="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.