+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Sitepanel bar control error on template edit

Sitepanel bar control error on template edit

7 posts, 0 answered
  1. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    20 Aug 2007
    Link to this post
    Hi,

    When I try to edit a template and add the Sitepanelbar control I get the following error. With all other navigation controls I don't have this issue? Any suggestion what causes it? I can use it on page edit and only on template edit I have this error.

    Best regards

    Vagelis


     

    Server Error in '/eleusina.gr' Application.

    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    Line 339:            }
    Line 340:        }
    Line 341:        if (CmsUrlContext.Current.Path == Page.ResolveUrl(e.Item.NavigateUrl).ToLower())
    Line 342:            e.Item.Selected = true;
    Line 343:    }

    Source File: c:\Program Files\telerik\Sitefinity3.0\WebSites\eleusina.gr\Sitefinity\UserControls\SitePanelbar.ascx.cs    Line: 341

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       UserControls_SitemapPanelbar.RadPanelbar1_ItemDataBound(Object sender, RadPanelbarEventArgs e) in c:\Program Files\telerik\Sitefinity3.0\WebSites\eleusina.gr\Sitefinity\UserControls\SitePanelbar.ascx.cs:341
       Telerik.WebControls.RadPanelbar.RaiseEvent(RadPanelItem item, Object eventToRaise) +91
       Telerik.WebControls.RadPanelbar.SetUpPanelItem(IRadPanelItemContainer parent, RadPanelItem item, Object dataObject, Boolean dataBind) +178
       Telerik.WebControls.RadPanelItemCollection.AddDataBoundItem(RadPanelItem item, Object dataObject) +85
       Telerik.WebControls.PanelbarDataBinder.BindToIHierarchicalEnumerable(RadPanelItemCollection items, IHierarchicalEnumerable enumerable, Int32 depth) +126
       Telerik.WebControls.RadPanelbar.PerformDataBinding(IEnumerable data) +691
       System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +111
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +29
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
       System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
       System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +19
       Telerik.WebControls.RadPanelbar.OnPreRender(EventArgs e) +52
       System.Web.UI.Control.PreRenderRecursiveInternal() +77
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +161
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.833
  2. Vlad
    Vlad avatar
    498 posts
    Registered:
    15 Jul 2016
    20 Aug 2007
    Link to this post
    Hello Vagelis,

    Sorry, this error is related to a bug in the SitePanelbar user control, which comes with SP2.
    We are sending to you the fixed SitePanelbar.ascx.cs file. Copy it into ~/Sitefinity/UserControls folder.

    Sincerely yours,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    23 Aug 2007
    Link to this post
    Maybe not worth mentioning, but I suppose this 'bug' is also solved in version 3.1?

    Thanks,
    Daniel
  4. Sonya
    Sonya avatar
    231 posts
    Registered:
    24 Sep 2012
    23 Aug 2007
    Link to this post
    Hi Daniel,

    Yes, this has already been fixed.

    Thank you for paying attention and aiding us in improving Sitefinity.

    Regards,
    Sonya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    23 Aug 2007
    Link to this post
    Good to hear.
    Can't wait to download the new release. I've been on hold for about 3 weeks now because of the multilangual 'bugs'. Hope it is all solved now.

    Greetings,
    Daniel
  6. Gene Grant
    Gene Grant avatar
    7 posts
    Registered:
    08 Sep 2005
    12 Sep 2007
    Link to this post
    I'm having the same issue with the SitePanelbar, can I get the new control, as well?

    Thanks,

    Gene Grant
  7. Gene Grant
    Gene Grant avatar
    7 posts
    Registered:
    08 Sep 2005
    12 Sep 2007
    Link to this post
    Nevemind, I see the zip in the thread.  DOH!
Register for webinar
7 posts, 0 answered