Server Error in '/' Application.

There is no row at position 0.

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 0.

Source Error:


Line 238: Line 239: Line 240: DataRow dr_voice = CatalogAccess.SelectDataSql("select * , " + Line 241: " cla_name = (select cla_name from class where cla_id = doc.cla_id)" + Line 242: ", typ_name = (select typ_name from type_class where typ_id = doc.typ_id)" +

Source File: c:\inetpub\wwwroot\labeebsabagroup\booking_steps.aspx.cs    Line: 240

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.] System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2704337 System.Data.DataRowCollection.get_Item(Int32 index) +19 booking_steps.get_doc(String doc_id) in c:\inetpub\wwwroot\labeebsabagroup\booking_steps.aspx.cs:240 booking_steps.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\labeebsabagroup\booking_steps.aspx.cs:69 System.Web.UI.Control.OnLoad(EventArgs e) +109 System.Web.UI.Control.LoadRecursive() +68 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


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