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 89: 
Line 90:                 string arat = "ID = " + menuListEkle;
Line 91:                 bulunan = ds.Tables[0].Select(arat)[0]["RELID"].ToString();
Line 92:                 if (bulunan != "0")
Line 93:                 {

Source File: c:\inetpub\vhosts\egemet.com.tr\httpdocs\tr_hizmetler.aspx.cs    Line: 91

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   tr_hizmetler.MenuLinkCoz() in c:\inetpub\vhosts\egemet.com.tr\httpdocs\tr_hizmetler.aspx.cs:91
   ASP.tr_hizmetler_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\vhosts\egemet.com.tr\httpdocs\tr_hizmetler.aspx:36
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Version Information: Microsoft .NET Framework Version:2.0.50727.8813; ASP.NET Version:2.0.50727.8955