Server Error in '/tri-state-k9' Application.

Invalid attempt to call Read when reader is closed.

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 call Read when reader is closed.

Source Error:


Line 102:    <table>
Line 103:        <%  Dim it = 0
Line 104:            While Rs.Read()
Line 105:                it = it + 1
Line 106:                SID = CInt(Rs(0))

Source File: E:\web\sarlaser\tri-state-k9\StandardsPrint.aspx    Line: 104

Stack Trace:


[InvalidOperationException: Invalid attempt to call Read when reader is closed.]
   System.Data.Odbc.OdbcDataReader.Read() +1128768
   ASP.standardsprint_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in E:\web\sarlaser\tri-state-k9\StandardsPrint.aspx:104
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1342


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