Server Error in '/' Application.

Index 160 is either negative or above rows count.

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 160 is either negative or above rows count.

Source Error:


Line 249:
Line 250:        listKatalog.DataSource = pds;
Line 251:        listKatalog.DataBind();
Line 252:
Line 253:        listListe.DataSource = pds;

Source File: c:\Home\safir-grp.com\httpdocs\PortfoyListesi.aspx.cs    Line: 251

Stack Trace:


[IndexOutOfRangeException: Index 160 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +1902205
   System.Data.DataView.System.Collections.IList.get_Item(Int32 recordIndex) +13
   System.Web.UI.WebControls.EnumeratorOnIList.get_Current() +29
   System.Web.UI.WebControls.EnumeratorOnICollection.get_Current() +13
   System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) +260
   System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1076
   System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) +35
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +34
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   System.Web.UI.WebControls.ListView.PerformSelect() +101
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   PortfoyListesi.portfoyDoldur() in c:\Home\safir-grp.com\httpdocs\PortfoyListesi.aspx.cs:251
   PortfoyListesi.Page_Load(Object sender, EventArgs e) in c:\Home\safir-grp.com\httpdocs\PortfoyListesi.aspx.cs:794
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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