Server Error in '/' Application.

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 132:		string[] queryParams = query.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries);
Line 133:
Line 134:		_pageId = Helper.ToInt32(queryParams[1]);
Line 135:	}
Line 136:}

Source File: d:\www\NPCRC\www\content.aspx.cs    Line: 134

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   content.ParseQuery(String query) in d:\www\NPCRC\www\content.aspx.cs:134
   content.Page_PreInit(Object sender, EventArgs e) in d:\www\NPCRC\www\content.aspx.cs:24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Page.OnPreInit(EventArgs e) +9862342
   System.Web.UI.Page.PerformPreInit() +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +302


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