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 130:                }
Line 131:                else
Line 132:                    newPath += "/modules/media.aspx?mlsname=" + LastWord[2] + "&mlsid=" + LastWord[3] + "&type=" + LastWord[4];
Line 133:            }
Line 134:

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

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:132
   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