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 1285:
Line 1286:
Line 1287:            language = HttpContext.Current.Request.UserLanguages[0] ?? language;
Line 1288:            language = HttpContext.Current.Request.Cookies["language"] == null ? language : HttpContext.Current.Request.Cookies["language"].Value;
Line 1289:            language = HttpContext.Current.Request.QueryString["language"] ?? language;

Source File: d:\wwwroot\net\mtxcl.com\App_Code\Common.cs    Line: 1287

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Common.get_Language() in d:\wwwroot\net\mtxcl.com\App_Code\Common.cs:1287
   Common.get_IsEnglish() in d:\wwwroot\net\mtxcl.com\App_Code\Common.cs:1320
   OleDbHelper.get_strConnection() in d:\wwwroot\net\mtxcl.com\App_Code\OleDbHelper.cs:29
   OleDbHelper.ExecuteDataSet(CommandType cmdType, String cmdText) in d:\wwwroot\net\mtxcl.com\App_Code\OleDbHelper.cs:291
   _Default.getAboutInfo(String id) in d:\wwwroot\net\mtxcl.com\About.aspx.cs:45
   _Default.Page_Load(Object sender, EventArgs e) in d:\wwwroot\net\mtxcl.com\About.aspx.cs:33
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +74
   System.Web.UI.Control.LoadRecursive() +120
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2846


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