Object reference not set to an instance of an object.

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:


Line 88:         if (ValidationHelper.GetBoolean(CMSContext.CurrentDocument.GetValue("UseCustomImage"), true))
Line 89:         {
Line 90:             headerImg.ImageUrl = "/CMSPages/GetFile.aspx?guid=" + CMS.CMSHelper.CMSContext.CurrentDocument.GetValue("HeaderPicture").ToString();
Line 91:         }
Line 92:         else

Source File: c:\Applications\www.venture-finance.co.uk\CMSTemplates\VentureFinance\daugh_color.aspx.cs    Line: 90

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   subdomains_venture_httpdocs_CMSTemplates_VentureFinance_daugh_color.Page_Load(Object sender, EventArgs e) in c:\Applications\www.venture-finance.co.uk\CMSTemplates\VentureFinance\daugh_color.aspx.cs:90
   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) +99
   CMS.UIControls.ContentPage.OnLoad(EventArgs e) +32
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082