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

Source File: C:\HQ_WEB\WEB\Thermaltake\Key3_ServiceCenter_2017\global.asax    Line: 52

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\Thermaltake\Key3_ServiceCenter_2017\global.asax:52
   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