Server Error in '/' Application.

There is no row at position 1.

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: There is no row at position 1.

Source Error:


Line 89: 
Line 90: 
Line 91:         tie_id                              = Convert.ToInt32(ds.Tables[0].Rows[1]["id"]);
Line 92:         warranty_in_months                  = Convert.ToInt32(product_row["warrantyInMonths"]);
Line 93:         warranty_id                         = Convert.ToInt32(product_row["warrantyId"]);

Source File: c:\IIS\camera.co.il\old\controls\products\product.ascx.cs    Line: 91

Stack Trace:


[IndexOutOfRangeException: There is no row at position 1.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2541558
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   controls_products_product.FillProduct() in c:\IIS\camera.co.il\old\controls\products\product.ascx.cs:91
   controls_products_product.Page_Load(Object sender, EventArgs e) in c:\IIS\camera.co.il\old\controls\products\product.ascx.cs:63
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1602


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