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 52:                 if (part.Length == 1)
Line 53:                     qs.Add(part[0], "");
Line 54:                 qs.Add(part[0], part[1]);
Line 55:             }
Line 56: 

Source File: c:\HostingSpaces\emecotray.com\emecotray.com\wwwroot\App_Code\Modules\QueryString.cs    Line: 54

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   PAB.Utils.QueryString.FromUrl(String url) in c:\HostingSpaces\emecotray.com\emecotray.com\wwwroot\App_Code\Modules\QueryString.cs:54
   PAB.Utils.QueryString.FromCurrent() in c:\HostingSpaces\emecotray.com\emecotray.com\wwwroot\App_Code\Modules\QueryString.cs:33
   prodetails.Page_Load(Object sender, EventArgs e) in c:\HostingSpaces\emecotray.com\emecotray.com\wwwroot\prodetails.aspx.cs:18
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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