Hi, I copied all my site on the server of Winhost. I tested it, and all was ok. A few hours later, I surfed again on it, but I received this error: "Could not find the sitemap node with URL" Of course I havn't change aynthing between my two tests. Do you have an idea regards this error. Thanks in advance. Fred.
Here is the entire error: I checked it. ~/ecole/ecole.aspx well exists on the server. Thank you for you help. Server Error in '/' Application. Could not find the sitemap node with URL '~/ecole/ecole.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 '~/ecole/ecole.aspx'. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentException: Could not find the sitemap node with URL '~/ecole/ecole.aspx'.] System.Web.UI.WebControls.SiteMapDataSource.GetNodes() +1918654 System.Web.UI.WebControls.SiteMapDataSource.GetTreeView(String viewPath) +35 System.Web.UI.WebControls.SiteMapDataSource.GetHierarchicalView(String viewPath) +32 System.Web.UI.HierarchicalDataSourceControl.System.Web.UI.IHierarchicalDataSource.GetHierarchicalView(String viewPath) +10 System.Web.UI.WebControls.HierarchicalDataBoundControl.GetData(String viewPath) +25 System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item) +54 System.Web.UI.WebControls.Menu.PerformDataBinding() +137 System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() +99 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74 System.Web.UI.WebControls.Menu.DataBind() +4 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66 System.Web.UI.WebControls.Menu.EnsureDataBound() +40 System.Web.UI.WebControls.Menu.CreateChildControls() +110 System.Web.UI.Control.EnsureChildControls() +102 System.Web.UI.Control.PreRenderRecursiveInternal() +42 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1016
Hello, Have someone an explication about this? Sometimes it works, sometime it doesn't works. When it doesn't works, I just have to copy my web.config on the server, and all is anew ok... for a few hours! Its' annoying... Thanks, Fred.
Hi Fred, My best guess is try using an actual URL like http://www.mydomain.com/ecole/ecole.aspx. To my best knowledge, the tilde (~) character is used for file system paths.
Hi Elshadriel, I spook about web.config in my previous mail, but I had to speak about web.sitemap. I use ~ in my web.sitemap for all time, and it worked well before! When I copy my web.sitemap on the server, my website works again for a few hours (without changing anything in my web.sitemap). So I don't understand why suddenly my web.sitemap works only for a few hours... I've just checked now. My website didn't work anymore. I've done a copy-paste of my web.sitemap from the server to my PC. Then I've done a copy-paste of the same file from my PC to the server... and my website works now!!! An issue with the server is possible? Thanks a lot for you help. Regards, Fred.
Can you show us a way to replicate the problem? i want to run some test and see if i can reproduce it.
FredC, Now is the site again out of order. So, you have just to copy web.sitemap from the server to your local drive. Then you copy the web.sitemap (saved on your local drive) to the server (with overide the existing file)... and magic the site works again well! Thanks for your researches. Fred
Sunday 12:00 AM UTC+1: Site still down. I copy paste web.config from ther server to my local drive, then from my local drive to the server. And my site works again... until when... wait and see!
I was able to recreate the issue on my end when I visited your site. I recycled the application pool and your site came right up after the recycle was completed. You can also recycle the application pool through the control panel. Log in to the control panel. Click on the "Sites" tab. Click on "Manage" next to your site. On the next page click on "Recycle App. Pool" box. Now click on the green recycle app pool box to recycle the application pool.
Indeed I saw it's was running again. But now, less than 12 jours after your operation, website is out of order again!
Error is gone.. Seem like others have seen this error http://stackoverflow.com/questions/3390272/sitemap-randomly-breaks-over-time Maybe try what this post is recommending.