By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,470 Members | 994 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,470 IT Pros & Developers. It's quick & easy.

2.0 Noob needs help with sitemap

P: n/a
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
Nov 1 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Figures that I would figure it out after I posted... I took out the
StartingNodeUrl="~/Web.sitemap" from the SiteMapDataSource and now it's
working.

Thanks!
Velvet
"Velvet" <ve****@newsgroups.nospamwrote in message
news:eW**************@TK2MSFTNGP03.phx.gbl...
>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

Nov 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.