Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9184505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:04:14+00:00 2026-06-17T19:04:14+00:00

This error pops up whenever I attempt to view a webpage in preview mode

  • 0

This error pops up whenever I attempt to view a webpage in preview mode using the sitecore content management system:

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.]
NLC.Website.layouts.SubLayouts.Body_Header.Page_Load(Object sender, EventArgs e) in D:\src\tfs2010\Sitecore.ATS\Dev\1.0\NLC.Website\layouts\SubLayouts\PageStructure\Body-Header.ascx.cs:52

System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
System.Web.UI.Control.LoadRecursive() +70
System.Web.UI.Control.LoadRecursive() +189
System.Web.UI.Control.LoadRecursive() +189
System.Web.UI.Control.LoadRecursive() +189
System.Web.UI.Control.LoadRecursive() +189
System.Web.UI.Control.LoadRecursive() +189
System.Web.UI.Control.LoadRecursive() +189
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063

I am new to using this program and am currently experimenting with it. My knowledge is limited in regards to programming but I am willing to learn! So please if you have any advice at all, I am all ears!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:04:16+00:00Added an answer on June 17, 2026 at 7:04 pm

    Check line 52 of NLC.Website\layouts\SubLayouts\PageStructure\Body-Header.ascx.cs for an object which is null. In Sitecore sites, this is sometimes an Item that does not exist.

    See the following SOF question for more information on NullReferenceException and debugging it.

    What is a NullReferenceException, and how do I fix it?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing this JS for CRM 2011, and this error pops out whenever
Everytime I run the program, this mysterious error pops up saying that I have
Got this error message while trying to load view: The model item passed into
I get this error when I attempt to run the wcftestclient application: The client
This error pops up randomly, and I'm pretty sure it's because the infoGotten variable
Works fine on the local machine, but when deployed this error message pops up:
I tried submitting this and an error pops up saying ** END OF FILE
With this code, I get this error: '* -[NSMutableArray insertObject:atIndex:]: attempt to insert nil
After switching from RVM to system ruby I keep getting this error. It doesn't
For the past hour, whenever I attempt to open a form, an error has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.