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 567:        If objRecipe.SourceBook = "" Or objRecipe.MemberId <> "9306" Then
Line 568:            'ltrRcpSource.Visible = False
Line 569:            Dim memcard As New MemberCard(Convert.ToUInt64(objRecipe.MemberId))
Line 570:            ltrRcpSource.Visible = True
Line 571:            ltrRcpSource.Text = "<div id=""rcpsourcebook"">"

Source File: D:\Webroot\td2k8r2-64\tdcpreview.dytelworld.com\Recipe.aspx.vb    Line: 569

Stack Trace:


[InvalidOperationException: Invalid attempt to read when no data is present.]
   System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) +118
   System.Data.SqlClient.SqlDataReader.get_Item(String name) +27
   TDUI.MemberUI.GetDisplayName(Int64 MemberId) +188
   MemberCard..ctor(Int64 memid) +253
   RecipeDetail.FillSource() in D:\Webroot\td2k8r2-64\tdcpreview.dytelworld.com\Recipe.aspx.vb:569
   RecipeDetail.Page_Load(Object sender, EventArgs e) in D:\Webroot\td2k8r2-64\tdcpreview.dytelworld.com\Recipe.aspx.vb:2091
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5491