Editor crashes for breadcrumb on home page

Vote:
 

Hi,

 

Has anyone seen this error before

 

Parameter has no page set
Parameter name: pageLink
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.ArgumentNullException: Parameter has no page set
Parameter name: pageLink

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:


[ArgumentNullException: Parameter has no page set
Parameter name: pageLink]
   EPiServer.DataFactory.GetPage(PageReference pageLink, ILanguageSelector selector) +243
   EPiServer.DataFactory.GetPage(PageReference pageLink) +25
   EPiServer.PageSiteMapProvider.GetParentPageFromSiteMapNode(SiteMapNode node) +66
   EPiServer.PageSiteMapProvider.GetParentNode(SiteMapNode node) +22
   System.Web.SiteMapNode.get_ParentNode() +27
   System.Web.UI.WebControls.SiteMapPath.CreateControlHierarchyRecursive(Int32& index, SiteMapNode node, Int32 parentLevels) +24
   System.Web.UI.WebControls.SiteMapPath.CreateControlHierarchy() +93
   System.Web.UI.WebControls.SiteMapPath.CreateChildControls() +32
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +44
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

 

Its caused by the breadcrumb on the home page. If I take out the breadcrumb it all works fine. The site works fine in view mode every where and so does the editor apart from the home page.

 

The breadcrumb uses standard .NET site map provider and control as below

 

web.config settings

 

 <siteMap enabled="true">
        <providers>
          <add name="CustomerSiteMap" type="EPiServer.PageSiteMapProvider, EPiServer" startPageLink="3" />
        </providers>
      </siteMap>

 

 

breadcrumb.ascx code

 

 <asp:SiteMapPath SiteMapProvider="CustomerSiteMap" SkipLinkText="" ID="SiteMapPathCtrl" runat="server">
       <RootNodeTemplate>
           <EPiServer:Property ID="PropertyPageLink" PropertyName="HomeStartPageId" runat="server"  />
       </RootNodeTemplate>
       
       
       <NodeTemplate>
              <EPiServer:Property ID="PropertyPageLink" PropertyName="PageLink" runat="server"  />
       </NodeTemplate>
       
       <CurrentNodeTemplate>
                  <EPiServer:Property ID="PropertyPageLink" PropertyName="PageName" runat="server"  />
       </CurrentNodeTemplate>
       
    </asp:SiteMapPath>

 

Any help or suggestions would be appriciated.

#35086
Nov 27, 2009 13:09
Vote:
 

No one ?

#35154
Nov 30, 2009 12:13
Vote:
 

<asp:SiteMapPath SiteMapProvider="MySiteMap" SkipLinkText="" ID="SiteMapPathCtrl" runat="server" CssClass="xxx" OnItemDataBound="SiteMapPathCtrl_ItemDataBound" >

 <RootNodeTemplate>  

   <a href='<%# ((EPiServer.PageSiteMapNode)Container.SiteMapNode).CurrentPage["PageLinkURL"] %>'>XXX</a>

</RootNodeTemplate>

 <PathSeparatorTemplate> || </PathSeparatorTemplate>

 <CurrentNodeStyle CssClass="XXX" />

 <PathSeparatorStyle CssClass ="XXX" />

 <NodeStyle CssClass="SiteMapPathNode" />

 <RootNodeStyle CssClass="SiteMapPathNode" />

</asp:SiteMapPath>

#35157
Edited, Nov 30, 2009 13:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.