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

Invalid operation. The connection 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 operation. The connection is closed.

Source Error:


Line 106:        p.ConnectDB()
Line 107:        Dim qcDiscipline As OdbcCommand = New OdbcCommand(qDiscipline, p.oconn)
Line 108:        Dim rDiscipline As OdbcDataReader = qcDiscipline.ExecuteReader()
Line 109:        Dim FieldCount As Integer = rDiscipline.RecordsAffected
Line 110:        rDiscipline.Close()

Source File: E:\web\sarlaser\tri-state-k9\Evaluators.aspx    Line: 108

Stack Trace:


[InvalidOperationException: Invalid operation. The connection is closed.]
   System.Data.ProviderBase.DbConnectionClosed.CreateReferenceCollection() +88
   System.Data.ProviderBase.DbConnectionInternal.AddWeakReference(Object value, Int32 tag) +24
   System.Data.Odbc.OdbcConnection.AddWeakReference(Object value, Int32 tag) +19
   System.Data.Odbc.OdbcCommand.GetStatementHandle() +62
   System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod) +81
   System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader) +68
   System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior) +79
   System.Data.Odbc.OdbcCommand.ExecuteReader() +12
   ASP.evaluators_aspx.__RenderBodyContent(HtmlTextWriter __w, Control parameterContainer) in E:\web\sarlaser\tri-state-k9\Evaluators.aspx:108
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Control.Render(HtmlTextWriter writer) +12
   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
   ASP.site_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in E:\web\sarlaser\tri-state-k9\Site.Master:528
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Control.Render(HtmlTextWriter writer) +12
   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.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +129
   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