473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

2.0 Noob needs help with sitemap

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
1 4491
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Alan Silver | last post by:
Hello, I want to show a treeview display of the contents of a sitemap file on another web site, chosen according to the currently logged on user. I know at run time the path to the sitemap file,...
1
by: Jon Paal | last post by:
can't seem to get a vertical stack of three links from sitemap file: What's the magic combination ? <?xml version="1.0" encoding="utf-8" ?> <siteMap...
1
by: chris.rust | last post by:
Has anyone else had any trouble setting up a sitemap view to be filtered by roles? We've put a cust role provider in place, and we can verify that it's only being called once for each...
4
by: shapper | last post by:
Hello, I have 2 questions about Asp.Net 2.0 web.sitemap: 1. Where can I find the list of all siteMapNode attributes? I looked eveywhere and couldn't find it. 2. I created a Web.sitemap...
4
by: shapper | last post by:
Hello, I am trying to convert an Asp.Net 2.0 XML sitemap file to a Google's sitemap file. I am posting the formats of both files. 1. How can I do the conversion? 2. And can I use an...
1
by: Alec MacLean | last post by:
Hi. I'm using VS2005 Pro to work on a website project for my company. The site has several navigation elements, all based on the standard VS2005 navigation components. I have high-level...
3
by: George Smiley | last post by:
Hi, I'm a relative newcomer to css although I really do believe in its philosophy and power. I'm even currently teaching web authoring with css to a group of beginners. However, I trying to...
1
by: Robert Dufour | last post by:
In Vs2005 VB.net. How do you localize the title and the description of the pages in the web.sitemap file? For instance in the simple sitemap below <?xml version="1.0" encoding="utf-8" ?> ...
0
by: Andy B | last post by:
I am using the default XML provider for the sitemap. I need the sitemap to display in different lists seperated based on node. Here is an example sitemap that I have. in web.sitemap (the list of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.