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 27:         Dim languagesbrowser As String() = HttpContext.Current.Request.UserLanguages
Line 28:         Dim languagebrowser As String
Line 29:         If languagesbrowser IsNot Nothing And Not languagesbrowser.Length = 0 Then
Line 30:             Try
Line 31:                 languagebrowser = languagesbrowser(0).ToLowerInvariant().Trim()

Source File: C:\inetpub\wwwroot\slangenportaal\slangenportaal.nl\App_Code\BasePage.vb    Line: 29

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   BasePage.InitializeCulture() in C:\inetpub\wwwroot\slangenportaal\slangenportaal.nl\App_Code\BasePage.vb:29
   ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in C:\inetpub\wwwroot\slangenportaal\slangenportaal.nl\default.aspx:1
   ASP.default_aspx.FrameworkInitialize() in C:\inetpub\wwwroot\slangenportaal\slangenportaal.nl\Default.aspx.vb:912308
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +51
   System.Web.UI.Page.ProcessRequest() +74
   System.Web.UI.Page.ProcessRequest(HttpContext context) +69
   ASP.default_aspx.ProcessRequest(HttpContext context) +45
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +789
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87


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