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 19:         
Line 20:         'Set Language Locale
Line 21:         Dim UserlangCode As String = Request.UserLanguages(0).Substring(0, 2).ToUpper
Line 22:         Select Case UserlangCode
Line 23:             Case "EN"

Source File: f:\shares\websites\Ramasoft.com\global.asax    Line: 21

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in f:\shares\websites\Ramasoft.com\global.asax:21
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +8894104
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +237
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +504
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +66
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974