menu disappear

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/28/2006 10:48:33 AM
Gravatar
Total Posts 13

menu disappear

I finally have the mojo setup properly, and was putting pages in.  And then at one point, I was saving a page or something, and it gave me some error. I forgot what the error was exactly. But here's the last event in the currentlog.config:

2006-09-28 15:43:50,313 [3516] ERROR mojoPortal.Web.Global [(null)] - /mojoportal/Default.aspx
System.InvalidOperationException: Multiple nodes with the same URL '/MojoPortal/rightfromthestart.aspx' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.
   at System.Web.StaticSiteMapProvider.AddNode(SiteMapNode node, SiteMapNode parentNode)
   at mojoPortal.Web.mojoSiteMapProvider.CreateChildNodes(SiteMapNode node, PageSettings page, Int32 pageIndex)
   at mojoPortal.Web.mojoSiteMapProvider.CreateSiteMapNode(PageSettings page, Int32 pageIndex)
   at mojoPortal.Web.mojoSiteMapProvider.CreateChildNodes(SiteMapNode node, PageSettings page, Int32 pageIndex)
   at mojoPortal.Web.mojoSiteMapProvider.CreateSiteMapNode(PageSettings page, Int32 pageIndex)
   at mojoPortal.Web.mojoSiteMapProvider.BuildSiteMap()
   at mojoPortal.Web.mojoSiteMapProvider.GetRootNodeCore()
   at System.Web.SiteMapProvider.get_RootNode()
   at System.Web.UI.WebControls.SiteMapDataSource.GetNodes()
   at System.Web.UI.WebControls.SiteMapDataSource.GetTreeView(String viewPath)
   at System.Web.UI.WebControls.SiteMapDataSource.GetHierarchicalView(String viewPath)
   at System.Web.UI.HierarchicalDataSourceControl.System.Web.UI.IHierarchicalDataSource.GetHierarchicalView(String viewPath)
   at System.Web.UI.WebControls.HierarchicalDataBoundControl.GetData(String viewPath)
   at System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item)
   at System.Web.UI.WebControls.Menu.PerformDataBinding()
   at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at System.Web.UI.WebControls.Menu.DataBind()
   at mojoPortal.Web.SiteMenu.RenderMenu()
   at mojoPortal.Web.SiteMenu.Page_Load(Object sender, EventArgs e)
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Once this error occured, when I click Home or other page in the menu, the menu disappeared with only Home and Links showing.  Any idea?
9/28/2006 11:04:02 AM
Gravatar
Total Posts 18439

Re: menu disappear

It looks like there was an error in building the site map. I think there is a limitation in the base class XmlSiteMapProvider that each url in the SiteMap must be unique. Did you create to pages with the same friendly url rightfromthestart.aspx?

If so I think you can have 2 menu pages point to the same page in the site but you would have to use a workaround by having 2 different friendly urls that point to the same real url ie Default.aspx?pageid=x then use different friendly urls for each menu page even though they will show the same content.

Once the site map is created it is cached so you could clear the cache by modifying the web.config. My guess is it gets this error while building the sitemap then it caches the partial sitemap so to correct it you need to make sure all the urls are unique then modify the web.config to clear the cache.

Hope it helps,

Joe
You must sign in to post in the forums. This thread is closed to new posts.