Server Error in '/' Application.

ERROR [HY000] [Microsoft][ODBC SQL Server Driver]La connexion est occupée avec les résultats d'un autre hstmt

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.Data.Odbc.OdbcException: ERROR [HY000] [Microsoft][ODBC SQL Server Driver]La connexion est occupée avec les résultats d'un autre hstmt

Source Error:


Line 68:     
Line 69:     szQFoot = "SELECT Protocole, Mutuelle, URL, URLML, PiedASPXLgn2, URLImage01 FROM tblMutuelle WHERE NumHypo =  " & wM
Line 70:     Dim rsFoot As OdbcDataReader = OpenRecordset(Request, szQFoot)
Line 71:     Do Until Not rsFoot.Read()
Line 72:         szHttp = rsFoot("Protocole")

Source File: D:\domaines\allomutuelle.fr\http\mutuelle-france.aspx    Line: 70

Stack Trace:


[OdbcException (0x80131937): ERROR [HY000] [Microsoft][ODBC SQL Server Driver]La connexion est occupée avec les résultats d'un autre hstmt]
   System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) +1160042
   System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod) +1147
   System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader) +61
   System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior) +75
   System.Data.Odbc.OdbcCommand.ExecuteReader() +6
   clsSQL.OpenRecordset(HttpRequest& Request, String szSQL) +54
   ASP.mutuelle_france_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in D:\domaines\allomutuelle.fr\http\mutuelle-france.aspx:70
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Version Information: Microsoft .NET Framework Version:2.0.50727.3662; ASP.NET Version:2.0.50727.3668