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 17:         origURL = Replace(origURL, ".aspx", "")
Line 18:         splitURL = origURL.Split("/")
Line 19:         gridName = splitURL.GetValue(3).ToString.Split("?").GetValue(0)
Line 20:         manu = splitURL.GetValue(2)
Line 21:         Using f As New WebsiteFunctions

Source File: D:\rococom\grid.aspx.vb    Line: 19

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Array.InternalGetReference(Void* elemRef, Int32 rank, Int32* pIndices) +0
   System.Array.GetValue(Int32 index) +78
   grid.Page_Load(Object sender, EventArgs e) in D:\rococom\grid.aspx.vb:19
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062