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 63: 
Line 64:                 string arat = "ID = " + menuListEkle;
Line 65:                 bulunan = ds.Tables[0].Select(arat)[0]["RELID"].ToString();
Line 66:                 if (bulunan != "0")
Line 67:                 {

Source File: c:\inetpub\vhosts\elmas.com.tr\httpdocs\tr_hizmetler.aspx.cs    Line: 65

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   urunler.MenuLinkCoz() in c:\inetpub\vhosts\elmas.com.tr\httpdocs\tr_hizmetler.aspx.cs:65
   ASP.tr_hizmetler_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\vhosts\elmas.com.tr\httpdocs\tr_hizmetler.aspx:118
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1303


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