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 94:                 //blog url tagı
Line 95:                 DataRow[] drs = Snlg_ConfigValues.DTurlKeyList.Select("Dil = " + cu.LCID.ToString() + " AND UrlKeyValue='" + urlDizi[2 - urlIndex] + "'");
Line 96:                 sp = "snlg_V1.zsp_QueryString" + drs[0]["UrlKeyName"].ToString().Replace("-", "_");
Line 97:                 //blog tagı için url tagı
Line 98:                 drs = Snlg_ConfigValues.DTurlKeyList.Select("Dil = " + cu.LCID.ToString() + " AND UrlKeyValue='" + urlDizi[3 - urlIndex] + "'");

Source File: d:\vhosts\boyatabancasi.com\httpdocs\App_Code\Snlg_UrlRewrite.cs    Line: 96

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Snlg_UrlRewrite.UrlRewrite(Object sender) in d:\vhosts\boyatabancasi.com\httpdocs\App_Code\Snlg_UrlRewrite.cs:96
   Snlg_UrlRewrite.context_BeginRequest(Object sender, EventArgs e) in d:\vhosts\boyatabancasi.com\httpdocs\App_Code\Snlg_UrlRewrite.cs:26
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +144
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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