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 77:             DataTable dtLang;
Line 78:             dtLang = (DataTable)HttpContext.Current.Session["myLang"];
Line 79:             string s_lang = HttpContext.Current.Session["lang"].ToString();
Line 80:             if (dtLang == null)
Line 81:             {

Source File: c:\inetpub\wwwroot\billiardport.com\Global.asax.cs    Line: 79

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Global.Translate(String s_word, Int32 caseType) in c:\inetpub\wwwroot\billiardport.com\Global.asax.cs:79
   ASP.page_tour_players_aspx.__DataBind__control10(Object sender, EventArgs e) in c:\inetpub\wwwroot\billiardport.com\page_tour_players.aspx:51
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +177
   System.Web.UI.Control.DataBindChildren() +248
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +195
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +174
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +116
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +109
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +81
   page_events.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\billiardport.com\page_tour_players.aspx.cs:42
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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