Try Now
More in this section

Forums / Developing with Sitefinity / Function "revert to this version" doesn't work

Function "revert to this version" doesn't work

3 posts, 0 answered
  1. Inna
    Inna avatar
    97 posts
    08 Jun 2012
    22 May 2013
    Link to this post
    none of the pages on my site have this functionality. instead i'm getting this message - see below. how do i fix it? thanks!

    Server Error in '/' 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

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    Line 48: var sb = new StringBuilder();
    Line 49: var actualCurrentNode = SiteMapBase.GetActualCurrentNode();
    Line 50: var parentNode = (PageSiteNode)actualCurrentNode.ParentNode;
    Line 51: var displaytitle = string.Empty;
    Line 52:

    Source File: D:\Annapolis20120925\UserControls\uc_sitepanelnavigation.ascx.cs    Line: 50

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
    SitefinityWebApp.UserControl.uc_sitepanelnavigation.BuildNavigation() in D:\Annapolis20120925\UserControls\uc_sitepanelnavigation.ascx.cs:50
    SitefinityWebApp.UserControl.uc_sitepanelnavigation.Page_Load(Object sender, EventArgs e) in D:\Annapolis20120925\UserControls\uc_sitepanelnavigation.ascx.cs:40
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +91
    System.Web.UI.Control.LoadRecursive() +74
    System.Web.UI.Control.LoadRecursive() +146
    System.Web.UI.Control.LoadRecursive() +146
    System.Web.UI.Control.LoadRecursive() +146
    System.Web.UI.Control.LoadRecursive() +146
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

  2. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    04 Jan 2016
    27 May 2013
    Link to this post
    Hi Inna,

    It looks like the issue is originating from your custom navigation control: D:\Annapolis20120925\UserControls\uc_sitepanelnavigation.ascx.cs

    Do you get this error only when trying to revert to a previous version or when you open the page for editing as well? 

    Atanas Valchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Markus
    Markus avatar
    2763 posts
    25 Nov 2005
    27 May 2013 in reply to Atanas Valchev
    Link to this post
    Dear Inna

    I had the same problem once and indead it was coused by me. I had removed a part that was used and therefore the page could not be reverted to the old version.

3 posts, 0 answered