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 69:             if (System.IO.Path.GetExtension(filePath) == ".aspx")
Line 70:             {
Line 71:                 Context.RewritePath("/SporYazarlari/YazarDetay.aspx", "", "YazarID=" + path[3].Replace(".aspx", ""), true);
Line 72:             }
Line 73:         }

Source File: c:\ZZZ\sporyazarlari.com\www\Global.asax    Line: 71

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in c:\ZZZ\sporyazarlari.com\www\Global.asax:71
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69


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