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 91:                 string k2_secili = "Alt Kategoriler";
Line 92:                 if (!string.IsNullOrEmpty(k2))
Line 93:                     k2_secili = kategoriler.Filtrele("kategori_seo", k2)[0]["kategori"].ToString();
Line 94:                 st.Append("<div><a href=\"#\" class=\"btn btn-outline-secondary simplebar-content-wrapper btn-block dropdown-toggle text-left mb-2 font-weight-600 font-size-sm\" data-toggle=\"dropdown\">" + k2_secili + "</a>");
Line 95:                 st.Append("<div class=\"dropdown-menu altkategori-menu\">");

Source File: c:\inetpub\vhosts\aniltelekom.com\httpdocs\kategori.aspx.cs    Line: 93

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   kategori.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\aniltelekom.com\httpdocs\kategori.aspx.cs:93
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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