Server Error in '/' Application.

Invalid attempt to read when no data is present.

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.InvalidOperationException: Invalid attempt to read when no data is present.

Source Error:


Line 20: 	
Line 21: 
Line 22: 	NewsTitle = GeneListDetail.Reader.Item("data2")
Line 23: 	NewsBody = GeneListDetail.Reader.Item("data4")
Line 24: 	NewsHora = GeneListDetail.Reader.Item("data3")

Source File: C:\inetpub\SiteCD\www\app\app_2011\cd_orden_semana_det.aspx    Line: 22

Stack Trace:


[InvalidOperationException: Invalid attempt to read when no data is present.]
   System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) +185
   ASP.app_app_2011_cd_orden_semana_det_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\inetpub\SiteCD\www\app\app_2011\cd_orden_semana_det.aspx:22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974