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 532:    Dim dsImformacionTransparenci As DataSet
Line 533:    Dim dsabreviatura As DataSet
Line 534:    xintIdPlantilla = dsPagina.Tables(0).Rows(0).Item("IdPlantilla")
Line 535:    If xintIdPlantilla = 3 Then
Line 536:        dsImformacionTransparenci = New ClsZOFRABUS().fncObtener_ContenidoEstadistica_PaginaBUS(xinIDPaginaOriginal, cboAnoDocumento.Text)

Source File: C:\inetpub\wwwroot\ContenidoTransparencia.aspx    Line: 534

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2508478
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   ASP.contenidotransparencia_aspx.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in C:\inetpub\wwwroot\ContenidoTransparencia.aspx:534
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11659743
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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