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 144:       
Line 145:        //check if browser langues is en or fr if it is then broswer_language_valid will be true
Line 146:	 	if((languages.Length > 0))
Line 147:		{
Line 148:        browser_language = languages[0].ToLowerInvariant();

Source File: d:\SrvApps\inetpub\staging.reitmanscanadalimited.com\App_Code\BasePage.cs    Line: 146

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   BasePage.InitializeCulture() in d:\SrvApps\inetpub\staging.reitmanscanadalimited.com\App_Code\BasePage.cs:146
   ASP.reporting_calendar_aspx.__BuildControlTree(reporting_calendar_aspx __ctrl) in d:\SrvApps\inetpub\staging.reitmanscanadalimited.com\reporting-calendar.aspx:1
   ASP.reporting_calendar_aspx.FrameworkInitialize() in d:\SrvApps\inetpub\staging.reitmanscanadalimited.com\reporting-calendar.aspx.cs:912308
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +51
   System.Web.UI.Page.ProcessRequest() +74
   System.Web.UI.Page.ProcessRequest(HttpContext context) +69
   ASP.reporting_calendar_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\9de8d92e\142bc8b0\App_Web_zj2142h0.10.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +789
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87


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