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 13: 		// Force the use of Canadian French if any French variant is presented
Line 14: 		// by the browser as the user's first language.
Line 15: 		if (Request.UserLanguages.Length > 0)
Line 16: 		{
Line 17: 			if (Request.UserLanguages[0].StartsWith("fr"))

Source File: c:\Meuk\RND\Builds\2011-06-15\Login.aspx    Line: 15

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Meuk.RDBase.Web.Login2Page.InitializeCulture() in c:\Meuk\RND\Builds\2011-06-15\Login.aspx:15
   Meuk.RDBase.Web.Login2Page.__BuildControlTree(Login2Page __ctrl) in c:\Meuk\RND\Builds\2011-06-15\Login.aspx:1
   Meuk.RDBase.Web.Login2Page.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a23f3b0b\3ad6a097\App_Web_jkx1dm3y.15.cs:0
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48
   System.Web.UI.Page.ProcessRequest() +76
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +24
   System.Web.UI.Page.ProcessRequest(HttpContext context) +62
   Meuk.RDBase.Web.Login2Page.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a23f3b0b\3ad6a097\App_Web_jkx1dm3y.15.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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