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 105:            if (System.IO.Path.GetExtension(filePath) == ".aspx")
Line 106:            {
Line 107:                Context.RewritePath("/KoseYazarlari/YazarDetay.aspx", "", "YazarID=" + path[3].Replace(".aspx", ""), true);
Line 108:            }
Line 109:        }

Source File: c:\ZZZ\yazaroku.com\www\Global.asax    Line: 107

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in c:\ZZZ\yazaroku.com\www\Global.asax:107
   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