Navigation Problem when Hosted

Topics: Help
Apr 4, 2007 at 1:30 PM
Since no one else has reported this problem, it must be something I've done. But I can't figure it out. Navigation work fine on my local development server, but when hosted, I get the below error whenever navigating from the main menu to a page that is located in a folder. If the page is in the root directory, it works OK. http://version2.renegadesprints.org On that site, Results, Photos and Rules are in the root, other pages are in sub-directories.

Could this be due to the fact that this site is a sub-site of my primary domain, and if so, how can I fix it?

Thanks,
Ed
----------------------------------------------------

Cannot use a leading .. to exit above the top directory.
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.Web.HttpException: Cannot use a leading .. to exit above the top directory.

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:


HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.
System.Web.Util.UrlPath.ReduceVirtualPath(String path) +3527366
System.Web.Util.UrlPath.Reduce(String path) +84
System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +355
System.Web.XmlSiteMapProvider.GetNodeFromXmlNode(XmlNode xmlNode, Queue queue) +946
System.Web.XmlSiteMapProvider.ConvertFromXmlNode(Queue queue) +299
System.Web.XmlSiteMapProvider.BuildSiteMap() +1161
System.Web.XmlSiteMapProvider.get_RootNode() +12
System.Web.UI.WebControls.SiteMapDataSource.GetNodes() +219
System.Web.UI.WebControls.SiteMapDataSource.GetPathNodeCollection(String viewPath) +35
System.Web.UI.WebControls.SiteMapDataSource.GetView(String viewName) +37
System.Web.UI.WebControls.SiteMapDataSource.System.Web.UI.IDataSource.GetView(String viewName) +7
System.Web.UI.WebControls.Repeater.ConnectToDataSourceView() +329
System.Web.UI.WebControls.Repeater.OnLoad(EventArgs e) +16
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061



Coordinator
Apr 4, 2007 at 7:12 PM
Are you using RC1? The problem is that you are referencing a style sheet and the ASP.NET themes are now utalized. I suggest taking like 81-83?? from your ASP.NET masterpage. The stylesheet links do not need to be there.
Apr 4, 2007 at 9:03 PM
This site is based on V2.0. I don't think you had implemented themes on that version, had you?

Thanks,
Ed
Coordinator
Apr 5, 2007 at 12:22 AM
Anything Pre-RC1 didn't have themes. I am curious to what version you are using... v2 beta 1 or 2? This is really wierd behavior... I would suggest that you add themes in by adding EnableThemes at the top of the masterpage to true and adding a new theme. You will also need to add a <page theme="~~~~~"> to the web.config.

Better yet, you could upgrade to RC1 if you are using beta 2... they are quite similar.
Apr 5, 2007 at 2:12 AM
The site was based on v2 beta 2. I downloaded RC1 today and will try to get it working on my hosted account without making any changes at all. Once that is running, I'll probably add my mods back into that release rather than modify the b2 version.

Thanks,
Ed

Apr 5, 2007 at 5:05 PM
I have upgraded to RC1 and was surprised to see how easy it was, considering all the changes I had made to the Beta 2 release. I have run into a database problem though, and have posted it in the Issue Tracker section.

The link in my original post still points to the Beta 2 version with the navigation problem. http://test.renegadesprints.org is my new version based on RC1.

Thanks for the great work on RC1.
Ed