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 37:             //Response.Write("<br/><br/>");
Line 38:             
Line 39: 			string strURL = arrQueryStringVars[3];
Line 40:             strURL = strURL.Replace("-ampersand-", "&");
Line 41:             Response.Redirect(strURL);

Source File: c:\_Data\website_new\advertise.testfunda.com\TFServeAds.aspx.cs    Line: 39

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   TestFundaWebForm.Page_Load(Object sender, EventArgs e) in c:\_Data\website_new\advertise.testfunda.com\TFServeAds.aspx.cs:39
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   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.8972; ASP.NET Version:2.0.50727.8962