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 48:             if (System.IO.Path.GetExtension(filePath) == ".aspx")
Line 49:             {
Line 50:                 Context.RewritePath("/Yazilar/Detay.aspx", "", "YaziID=" + path[6].Replace(".aspx", ""), true);
Line 51:             }
Line 52:         }

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

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