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 26: <h2 class="fs_cat_title fs_grey fs_ex_bold fs_center"><%# (subMainPages_section == null) ? "" : subMainPages_section["title_" + Session["lang"].ToString()].ToString()%></h2>
Line 27: 
Line 28: <div class="page_grid_img" style="display:<%# (subMainPages_section["imageVis1"].ToString() == "True") ? "block" : "none" %>">
Line 29: <img src="<%# (subMainPages_section == null) ? "" : "images/" + subMainPages_section["image1"].ToString() %>" alt="<%# (subMainPages_section == null) ? "" : subMainPages_section["name_" + Session["lang"].ToString()].ToString()%>"/>
Line 30: </div>

Source File: c:\inetpub\wwwroot\beit-hagefen.com\controls\beithg_sub_main_page_section_id.ascx    Line: 28

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.beithg_sub_main_page_section_id.__DataBind__control2(Object sender, EventArgs e) in c:\inetpub\wwwroot\beit-hagefen.com\controls\beithg_sub_main_page_section_id.ascx:28
   System.Web.UI.Control.OnDataBinding(EventArgs e) +97
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +173
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   pageID.Page_LoadComplete(Object sender, EventArgs e) in c:\inetpub\wwwroot\beit-hagefen.com\pageID.aspx.cs:53
   System.Web.UI.Page.OnLoadComplete(EventArgs e) +11860132
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5462


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