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 44:                         <!--All images on this site are copyrighted and may not be downloaded or printed without the express written-->
Line 45:                         <!--permission of the photographer.  Violators will be prosecuted to the maximum extent allowable by law.-->
Line 46:                         <img height="400" onmousedown="CancelMouseEvent()" src="<%=LandingPageImage %>" alt="<%=PageTitle %>" /></td>
Line 47:                         <td class="ImageSeparator">&nbsp;</td>
Line 48:                         <td align="center">

Source File: c:\domains\sgbphotography.com\wwwroot\wedding\Packages.aspx    Line: 46

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Nexus.PortraitSite.WeddingUI.LandingPageBase.SetLandingPageSessionVars() +163
   Nexus.PortraitSite.WeddingUI.LandingPageBase.GetLandingPageImage() +38
   Nexus.PortraitSite.WeddingUI.LandingPageBase.get_LandingPageImage() +19
   ASP.packages_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\domains\sgbphotography.com\wwwroot\wedding\Packages.aspx:46
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2113547
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896


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