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 73:             String strClientLanguage = Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"];
Line 74: 			//Response includes multiple pieces, remove everything to the right of and including the comma
Line 75: 			if (strClientLanguage.Length != 2) {
Line 76: 				if (strClientLanguage.IndexOf(",") > 0) {
Line 77: 		           	strClientLanguage = strClientLanguage.Substring(0, strClientLanguage.IndexOf(","));

Source File: c:\inetpub\wwwroot\msanet\Altair5X\default.aspx    Line: 75

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.altair5x_default_aspx.getLanguage() in c:\inetpub\wwwroot\msanet\Altair5X\default.aspx:75
   ASP.altair5x_default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\msanet\Altair5X\default.aspx:212
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +116
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +78
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8752


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