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 216:userLang = Request.UserLanguages
Line 217:     'For count = 0 To userLang.GetUpperBound(0)
Line 218:     If CStr(userLang(0)) = "nl" Or CStr(userLang(0)) = "nl-be" Or CStr(userLang(0)) = "nl-nl" Then
Line 219:         TargetLang = "nl"
Line 220:     ElseIf CStr(userLang(0)) = "de" Or CStr(userLang(0)) = "de-at" Or CStr(userLang(0)) = "de-de" Or CStr(userLang(0)) = "de-li" Or CStr(userLang(0)) = "de-lu" Or CStr(userLang(0)) = "de-ch" Then

Source File: F:\inetpub\wwwroot\search-result\rssrelay\default.aspx    Line: 218

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.rssrelay_default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in F:\inetpub\wwwroot\search-result\rssrelay\default.aspx:218
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +275
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4572


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