Server Error in '/proyectos' 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 647:        objDataSet = DataCommon.GetDataSet(strQuery, CommandType.Text, Dic, Tipos)
Line 648:
Line 649:        With objDataSet.Tables(0).Rows(0)
Line 650:            drop_aic.SelectedValue = IIf(.Item("AIC"), "1", "0")
Line 651:            If Not IsDBNull(.Item("ID_PROYECTO_API")) AndAlso Not IsNothing(drop_proyectos_api.Items.FindByValue(.Item("ID_PROYECTO_API"))) Then

Source File: C:\Websites\Proyectos\Detalle_Proyecto.aspx.vb    Line: 649

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2517682
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   Detalle_Proyecto.CargarDatosProyecto() in C:\Websites\Proyectos\Detalle_Proyecto.aspx.vb:649
   Detalle_Proyecto.Page_Load(Object sender, EventArgs e) in C:\Websites\Proyectos\Detalle_Proyecto.aspx.vb:195
   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.4330.0