More in this section

Forums / Developing with Sitefinity / Object reference not set to an instance of an object.

Object reference not set to an instance of an object.

2 posts, 0 answered
  1. James
    James avatar
    1 posts
    Registered:
    14 Dec 2012
    14 Dec 2012
    Link to this post
    Hello,

    I am new to Sitefinity. I am starting to integrate a static HTML template into a Sitefinity template. I stripped down the HTML of the old site's existing home page template. I copied over the the asp tags with the content areas, but then I get the following error when I try to access the published stage site. Note that I can use "preview" links from the Sitefinity admin and see the page just fine.

    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.PageRouteHandler.AddRequiredControls(Page page, PageSiteNode data) +290
    System.Web.UI.Page.OnInit(EventArgs e) +104
    System.Web.UI.Control.InitRecursive(Control namingContainer) +132
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
    includeStagesAfterAsyncPoint) +1969

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

  2. Boyko Karadzhov
    Boyko Karadzhov avatar
    56 posts
    Registered:
    05 Dec 2016
    19 Dec 2012
    Link to this post
    Hello,

     There seems to be something wrong with template. Can you share its actual code?

    Greetings,
    Boyko Karadzhov
    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