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

Source File: f:\root\vhosts\nizamturizm.com.tr\httpdocs\App_Code\Snlg_UrlRewrite.cs    Line: 101

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Snlg_UrlRewrite.UrlRewrite(Object sender) in f:\root\vhosts\nizamturizm.com.tr\httpdocs\App_Code\Snlg_UrlRewrite.cs:101
   Snlg_UrlRewrite.context_BeginRequest(Object sender, EventArgs e) in f:\root\vhosts\nizamturizm.com.tr\httpdocs\App_Code\Snlg_UrlRewrite.cs:23
   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.4682.0