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

Forums / Bugs & Issues / Exception When I delete a page

Exception When I delete a page

2 posts, 0 answered
  1. Fujiy
    Fujiy avatar
    8 posts
    Registered:
    18 Mar 2010
    24 May 2011
    Link to this post
    When I select a specific page and click at delete button, sitefinity throws a Exception:

    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 code.

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

    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:

     

    [NullReferenceException: Object reference not set to an instance of an object.]

       Telerik.Cms.Data.StagedPage.DeleteObject() +120

       Nolics.ORMapper.Base.OdbClassHelper.DeleteClass(IOdbClass cl, OdbObjectStates& state) +80

       Telerik.Cms.Data.StagedPage.Delete() +27

       Telerik.Cms.Data.PageContentBase.DeleteObject() +458

       Nolics.ORMapper.Base.OdbClassHelper.DeleteClass(IOdbClass cl, OdbObjectStates& state) +80

       Telerik.Cms.Data.PageContentBase.Delete() +27

       Telerik.Cms.Data.PageBase.DeleteObject() +323

       Telerik.Cms.Data.CmsPage.DeleteObject() +41

       Nolics.ORMapper.Base.OdbClassHelper.DeleteClass(IOdbClass cl, OdbObjectStates& state) +80

       Telerik.Cms.Data.PageBase.Delete() +28

       Telerik.Cms.Data.DefaultProvider.DeletePage(IPage page) +302

       Telerik.Cms.Web.UI.SiteMapPanel.button_Command(Object sender, CommandEventArgs e) +2170

       System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +108

       System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135

       System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10

       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.4028
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    27 May 2011
    Link to this post
    Hello Fujiy,

    Have you made any manual changes to the database? The error is thrown when we try to remove the object from the database but we could not find the StagedPage id there.

    So we query two tables

    [StagedControlLink] and [sf_StagedPageContent], so in one of the the ID of the page that you are trying to delete does not exists.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    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
2 posts, 0 answered