Server Error in '/' Application.

There is already an open DataReader associated with this Connection which must be closed first.

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: MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first.

Source Error:


Line 34: 		
Line 35: 		Dim strSQLCouncil as string = "Select Council from towns Group by Council;"			
Line 36: 		nexus.loadRepeater(rptCouncils, strSQLCouncil)
Line 37: 		Dim strSQLSuburbs as string = "Select suburb from towns, companies where towns.council = '" & strCouncil & "' and towns.suburb = companies.town and companies.Post_Code = towns.Post_Code group by companies.town Order By suburb;"		
Line 38: 		nexus.loadRepeater(rptSuburbs, strSQLSuburbs)

Source File: C:\websites\veterinaryhospitals.net.au\www\council.aspx    Line: 36

Stack Trace:


[MySqlException (0x80004005): There is already an open DataReader associated with this Connection which must be closed first.]
   MySql.Data.MySqlClient.MySqlCommand.CheckState() +444
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +166
   MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +9
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +19
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +221
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +573
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +161
   Nexus.loadRepeater(Object objRepeater, String strSQL) +111
   ASP.council_aspx.Page_Load(Object sender, EventArgs e) in C:\websites\veterinaryhospitals.net.au\www\council.aspx:36
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974