[Mono-list] MySql Connector
Robert Jordan
robertj at gmx.net
Fri Oct 20 06:28:18 EDT 2006
Damien Churchill wrote:
> I was wondering has anyone else has experienced this:
>
> Unhandled Exception: MySql.Data.MySqlClient.MySqlException: There is
> already an open DataReader associated with this Connection which must be
> closed first.
> at MySql.Data.MySqlClient.MySqlCommand.CheckState () [0x00000]
> at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (CommandBehavior
> behavior) [0x00000]
> at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () [0x00000]
> at (wrapper remoting-invoke-with-check)
> MySql.Data.MySqlClient.MySqlCommand:ExecuteReader ()
> at MySql.Data.MySqlClient.Driver.ReportWarnings () [0x00000]
>
> I receive this error when trying to execute a stored procedure (other
> SQL statements work fine, even other stored procedures). It works fine
> on windows with .NET but on mono (windows or linux) I receive that
> error.
You're not closing the previous reader. It doesn't fail on MS.NET
because their garbage collector is probably disposing the reader
faster than Mono's.
Robert
More information about the Mono-list
mailing list