2.0 Noob needs help with sitemap

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
 
V

Velvet

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top