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 41:         End If
Line 42:         'Get Language of User Visiting Site
Line 43:         For Count = 0 To userLang.GetUpperBound(0)
Line 44:             myLang = CStr(userLang(Count))
Line 45:         Next Count

Source File: C:\WebSites\CaneRiverWaterway\global.asax    Line: 43

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in C:\WebSites\CaneRiverWaterway\global.asax:43
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +374
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1256
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +703
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158


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