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

Source File: C:\HQ_WEB\WEB\rma_usa_2021\global.asax    Line: 59

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\rma_usa_2021\global.asax:59
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


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