When I strated debugging I get this error immediately:
"Could not find the sitemap node with URL '~/Public/Default.aspx'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Could not find the sitemap node with URL '~/Public/Default.aspx'.
"
Could any one please help figure out what I am doing wrong here?
thanks in advance
Achievement provides the only real pleasure in life
"Could not find the sitemap node with URL '~/Public/Default.aspx'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in
the code. Exception Details: System.ArgumentException: Could not find the sitemap node with URL '~/Public/Default.aspx'.
As we all know, "~" represents the root directory. In order to resolve your issue, please check whether the Default.aspx page is in the Public folder of the root directory. If the path is wrong, you can't find it. Thus, this exception will be thrown out.
Best wishes,
Please mark the replies as answers if they help or unmark if not.
Feedback to us
ssffcc
Member
215 Points
122 Posts
how to implement routing in asp.net Menu control that uses a standard web.sitemap
Jul 29, 2012 03:10 PM|LINK
I have a web.sitemap which contains:
<siteMapNode url="~/Public/Default.aspx" title="HOME" description="Public Default Description" roles="*">
In my global.aspx I implemented routing:
public static void RegisterRoutes(RouteCollection routeCollection) { routeCollection.MapPageRoute("Home", "home", "~/Public/Default.aspx"); }Tim Cadieux
Participant
966 Points
317 Posts
Re: how to implement routing in asp.net Menu control that uses a standard web.sitemap
Jul 30, 2012 12:58 AM|LINK
http://chriscavanagh.wordpress.com/2009/05/19/asp-net-webform-routing-with-sitemaps/
http://forums.asp.net/t/1634943.aspx/1
***
Mark the replies as Answers if they answered your question.
Damn Code
Participant
1883 Points
323 Posts
Re: how to implement routing in asp.net Menu control that uses a standard web.sitemap
Jul 30, 2012 01:17 AM|LINK
Hi, friend
check this
http://stackoverflow.com/questions/2165568/sitemap-and-url-routing
Please remember to Mark the replies as Answers if they help & unmark them if they provide no help.
Catherine Sh...
All-Star
23382 Points
2490 Posts
Microsoft
Re: how to implement routing in asp.net Menu control that uses a standard web.sitemap
Aug 03, 2012 02:43 AM|LINK
Hi,
As we all know, "~" represents the root directory. In order to resolve your issue, please check whether the Default.aspx page is in the Public folder of the root directory. If the path is wrong, you can't find it. Thus, this exception will be thrown out.
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store