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 73:         Dim sBody As String
Line 74: 
Line 75:         sBody = dr("body")
Line 76:         sBody = sBody.Replace("[google]", sGoogle)
Line 77: 

Source File: d:\hosting\member\mbaartse\shoppingcartreviewsv3\articles.aspx.vb    Line: 75

Stack Trace:


[InvalidOperationException: Invalid attempt to read when no data is present.]
   System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) +137
   System.Data.SqlClient.SqlDataReader.get_Item(String name) +24
   cart.articles.Page_Load(Object sender, EventArgs e) in d:\hosting\member\mbaartse\shoppingcartreviewsv3\articles.aspx.vb:75
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


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