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 74:             dr.Read()
Line 75: 
Line 76:             lnkbtnAustralia.Text = dr.Item("aus")
Line 77:             'lnkbtnAustria.Text = dr.Item("at")
Line 78:             lnkbtnBrazil.Text = dr.Item("braz")

Source File: E:\Hosting\EgsAjax08\about\dealers.aspx.vb    Line: 76

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
   egs2.dealers.Page_Load(Object sender, EventArgs e) in E:\Hosting\EgsAjax08\about\dealers.aspx.vb:76
   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