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 90:             {
Line 91:                 DataRow[] drs = Snlg_ConfigValues.DTurlKeyList.Select("Dil = " + cu.LCID.ToString() + " AND UrlKeyValue='" + urlDizi[2 - urlIndex] + "'");
Line 92:                 sp = "snlg_V1.zsp_QueryString" + drs[0]["UrlKeyName"].ToString().Replace("-", "_");
Line 93:             }
Line 94:             if (urlDizi.Length == 5 - urlIndex)

Source File: f:\root\vhosts\tavafturizm.com\httpdocs\App_Code\Snlg_UrlRewrite.cs    Line: 92

Stack Trace:


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