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

Source File: f:\root\vhosts\metur.com.tr\httpdocs\App_Code\Snlg_UrlRewrite.cs    Line: 98

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Snlg_UrlRewrite.UrlRewrite(Object sender) in f:\root\vhosts\metur.com.tr\httpdocs\App_Code\Snlg_UrlRewrite.cs:98
   Snlg_UrlRewrite.context_BeginRequest(Object sender, EventArgs e) in f:\root\vhosts\metur.com.tr\httpdocs\App_Code\Snlg_UrlRewrite.cs:23
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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