Re: 2.0 Noob needs help with sitemap

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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" <velvet@xxxxxxxxxxxxxxxxx> wrote in message
news:eWsaG3f$GHA.3928@xxxxxxxxxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • 2.0 Noob needs help with sitemap
    ... 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. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: new menu control is very slow
    ... added links in the siteMap, and added some names to the GridView. ... > Regarding on the Menu control displaying slow problem, ... If the problem occurs on all the client, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • RE: site maps & menu control
    ... <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"</a>;> ... If you want horizonal orientation of nodes go for Menu Control and if yo ... Heres is the format I want on the leftside of my form. ... not have any url set as property, they are exactly that, just headings and I ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • RE: ASP.NET
    ... sitemap and so as a user control. ... > programmer and uses VB.NET quite extensively. ... > would be to use frames, but I don't want to go with frames. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Sitemap, Menu control - formatting
    ... and struggling with the sitemap and menu control. ... The first produces a menu with a single top level item, "GPC Home" and six ... Fair Vendors ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)