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

Forums / Bugs & Issues / SF 4.3 throws NullReferenceException error when Create is clicked on Page list

SF 4.3 throws NullReferenceException error when Create is clicked on Page list

6 posts, 0 answered
  1. Dan
    Dan avatar
    3 posts
    Registered:
    28 Nov 2011
    03 Jan 2012
    Link to this post
    Everything on the site appears to be working, except when we get to the Page list and try to create a new one.  The error is listed below. 

    We didn't really do anything too crazy before this happened, but we did delete a page, and it seemed like maybe it deleted two pages.  That could also be a coincidence.
    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.Sitefinity.Web.UI.Fields.CacheProfileField.GetProfileDetails(OutputCacheProfileElement profileConfig, Boolean isDefault) +154
       Telerik.Sitefinity.Web.UI.Fields.CacheProfileField.InitializeControls(GenericContainer container) +258
       Telerik.Sitefinity.Web.UI.SimpleView.CreateChildControls() +81
       System.Web.UI.Control.EnsureChildControls() +181
       Telerik.Sitefinity.Web.UI.Fields.CompositeFieldControl.get_FieldControls() +45
       Telerik.Sitefinity.Web.UI.ContentUI.Views.Backend.Detail.SectionControl.FieldsRepeater_ItemDataBound(Object sender, RepeaterItemEventArgs e) +622
       System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +203
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +626
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +166
       System.Web.UI.Control.DataBindChildren() +11413863
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
       System.Web.UI.Control.DataBindChildren() +11413863
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
       System.Web.UI.Control.DataBindChildren() +11413863
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
       System.Web.UI.Control.DataBindChildren() +11413863
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
       System.Web.UI.Control.DataBindChildren() +11413863
       System.Web.UI.Control.DataBindChildren() +11413863
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
       System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +185
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +627
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +167
       Telerik.Sitefinity.Web.UI.ContentUI.Views.Backend.Detail.DetailFormView.OnPreRender(EventArgs e) +350
       System.Web.UI.Control.PreRenderRecursiveInternal() +113
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4201
     
      
     
     
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
    Version:4.0.30319.237

  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    04 Jan 2012
    Link to this post
    Hello Dan,

    This is really a strange issue and not a common one. Could you please try to recycle the app pool and see if the problem will reappear. Have you upgraded to 4.4 from some earlier version? 

    Regards,
    Lubomir Velkov
    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
  3. Dan
    Dan avatar
    3 posts
    Registered:
    28 Nov 2011
    04 Jan 2012
    Link to this post
    This is 4.3, not 4.4.
    It was a clean install of 4.3.
    We've recycled the app pool and it did not change.
    We have the same issue on all development machines, but they share a database. 
  4. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    05 Jan 2012
    Link to this post
    Hi Dan,

    Do you use the same database from several web application project that each have their own set of configuration files? Also - it would help us if you could send us your database and web project so that we could debug and find what is causing this problem.

    Regards,
    Lubomir Velkov
    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
  5. Dan
    Dan avatar
    3 posts
    Registered:
    28 Nov 2011
    06 Jan 2012
    Link to this post
    As it happens, in the configuration of Sitefinity, the CacheProfile name had changed.  We aren't sure how it changed (it actually just got an extra space on the front of it), but deleting that extra space restored the site to full functionality.  We aren't sure why the site didn't create a new cache with the new (very similar) name, but it didn't.

    Does that seem plausible? 
  6. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    10 Jan 2012
    Link to this post
    Hello Dan,

    I'm glad that you solved your problem. I'm not sure about the name, probably the space in front was trimmed prior to saving the CacheProfile name.

    Regards,
    Lubomir Velkov
    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
6 posts, 0 answered