V
Velvet
I keep getting this error:
Could not find the sitemap node with URL '~/Web.sitemap'.
I have a master page that has a menu control and a SiteMapDataSource on it.
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal"
DataSourceID="SiteMapDataSource1">
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
StartingNodeOffset="1" StartingNodeUrl="~/Web.sitemap" />
My sitemap code looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="default.aspx" title="Home" description="Home" >
<siteMapNode url="categories.asp" title="Categories"
description="Categories" >
<siteMapNode url="Categories.aspx?cat=1" title="Product Type Categories"
description="Product Type Categories" />
<siteMapNode url="Categories.aspx?cat=2" title="Other Categories"
description="Categories" />
</siteMapNode>
<siteMapNode url="links.asp" title="Directory" description="" />
<siteMapNode url="about_us.asp" title="About Us" description="" >
<siteMapNode url="feedback.asp" title="Feedback" description="" />
<siteMapNode url="contactInfo.aspx" title="Contact Info" description="" />
</siteMapNode>
</siteMapNode>
</siteMap>
Can anyone see anything wrong with this? I've taken out some of the menu
structure to see if maybe it doesn't like some of the siteMapNodes but even
if I just have the default.aspx as the only node, I still get the error.
If you can help, please let me know.
Thanks!
Velvet
Could not find the sitemap node with URL '~/Web.sitemap'.
I have a master page that has a menu control and a SiteMapDataSource on it.
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal"
DataSourceID="SiteMapDataSource1">
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
StartingNodeOffset="1" StartingNodeUrl="~/Web.sitemap" />
My sitemap code looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="default.aspx" title="Home" description="Home" >
<siteMapNode url="categories.asp" title="Categories"
description="Categories" >
<siteMapNode url="Categories.aspx?cat=1" title="Product Type Categories"
description="Product Type Categories" />
<siteMapNode url="Categories.aspx?cat=2" title="Other Categories"
description="Categories" />
</siteMapNode>
<siteMapNode url="links.asp" title="Directory" description="" />
<siteMapNode url="about_us.asp" title="About Us" description="" >
<siteMapNode url="feedback.asp" title="Feedback" description="" />
<siteMapNode url="contactInfo.aspx" title="Contact Info" description="" />
</siteMapNode>
</siteMapNode>
</siteMap>
Can anyone see anything wrong with this? I've taken out some of the menu
structure to see if maybe it doesn't like some of the siteMapNodes but even
if I just have the default.aspx as the only node, I still get the error.
If you can help, please let me know.
Thanks!
Velvet