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 114:            {
Line 115:                if (originalPath.Contains("area"))
Line 116:                    newPath += "&page=" + LastWord[6] + "&pages=" + LastWord[8];
Line 117:
Line 118:                if (originalPath.Contains("suburbs"))

Source File: i:\Source\Projects\ADELELUCAS\toview.v1\Websites\Realestate\RELEASE\Global.asax    Line: 116

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in i:\Source\Projects\ADELELUCAS\toview.v1\Websites\Realestate\RELEASE\Global.asax:116
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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