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 18: Dim rsFeed = cmdFeed.ExecuteReader()
Line 19: rsFeed.Read()
Line 20: Dim URLu As String = "http://" & rsFeed("URL")
Line 21: Dim Titlu As String = rsFeed("Titlu")
Line 22: rsFeed.Close()

Source File: E:\Web\rss.eclub.ro\feed\index.aspx    Line: 20

Stack Trace:


[InvalidOperationException: Invalid attempt to read when no data is present.]
   System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) +203
   System.Data.SqlClient.SqlDataReader.get_Item(String name) +27
   ASP.feed_index_aspx.Page_Load() in E:\Web\rss.eclub.ro\feed\index.aspx:20
   System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +8
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9044271
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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