Server Error in '/' Application.

The StartRecord value of -4 is invalid; the value must be >= 0.
Parameter name: startRecord

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.ArgumentException: The StartRecord value of -4 is invalid; the value must be >= 0.
Parameter name: startRecord

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentException: The StartRecord value of -4 is invalid; the value must be >= 0.
Parameter name: startRecord]
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +300
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable) +146
   eosnet.DataGateway.GetContentByTreeIDLangID(DataSet ds, Int32 treeid, Int32 tableid, Int32 langid, Int32 start, Int32 rows, Int32 categoryid, Int32 visible) in C:\Users\Pc\Dropbox\ioanna\2014.03.24 (physiogen)\physiogen\eosnet\DataGateway.cs:627
   site.blog.BindData() in C:\Users\Pc\Dropbox\ioanna\2014.03.24 (physiogen)\physiogen\site\blog.aspx.cs:146
   site.blog.Page_Load(Object sender, EventArgs e) in C:\Users\Pc\Dropbox\ioanna\2014.03.24 (physiogen)\physiogen\site\blog.aspx.cs:52
   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.4700.0