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 48:             Else
Line 49:                 '取得瀏覽器設定的語系 有設定就導到相對的語系 沒有就通通導到英文語系            
Line 50:                 If System.Web.HttpContext.Current.Request.UserLanguages.Length > 0 Then
Line 51:                     'Lang = System.Web.HttpContext.Current.Request.UserLanguages.GetValue(0)
Line 52:                     'Select Case Lang.ToLower

Source File: C:\HQ_WEB\WEB\Luxa2\luxa2_ServiceCenter_2017\global.asax    Line: 50

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in C:\HQ_WEB\WEB\Luxa2\luxa2_ServiceCenter_2017\global.asax:50
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +79
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +170


Version Information: Microsoft .NET Framework Version:2.0.50727.8813; ASP.NET Version:2.0.50727.8951