Hi everyone, I'm getting a little trouble with my application. Seens that MySql Connector has a bug when try to dispose the connection.
"Attempted to read past the end of the stream." Stack Trace: [EndOfStreamException: Attempted to read past the end of the stream.] MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count) +122 MySql.Data.MySqlClient.MySqlStream.LoadPacket() +114 [MySqlException (0x80004005): Reading from the stream has failed.] MySql.Data.MySqlClient.MySqlStream.LoadPacket() +397 MySql.Data.MySqlClient.MySqlStream.ReadPacket() +41 MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId) +116 MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId) +49 MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId) +116 MySql.Data.MySqlClient.MySqlDataReader.NextResult() +235 [MySqlException (0x80004005): Fatal error encountered attempting to read the resultset.] MySql.Data.MySqlClient.MySqlDataReader.NextResult() +654 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1614 [MySqlException (0x80004005): Fatal error encountered during command execution.] MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +2245 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() +32 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() +64 MySql.Data.MySqlClient.MySqlTransaction.Commit() +232 NHibernate.Transaction.AdoTransaction.Commit() +261 [TransactionException: Commit failed with SQL exception] NHibernate.Transaction.AdoTransaction.Commit() +516 Castle.ActiveRecord.Framework.Scopes.AbstractScope.PerformDisposal(ICollection`1 sessions, Boolean flush, Boolean close) +270 Castle.ActiveRecord.SessionScope.PerformDisposal(ICollection`1 sessions) +84 Castle.ActiveRecord.Framework.Scopes.AbstractScope.Dispose() +76 Castle.ActiveRecord.Framework.SessionScopeWebModule.OnEndRequest(Object sender, EventArgs e) +126 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 Has anyone known how to fix this bug?? Using AR 2.1, MySQL Connector 6.2.4 (6.3.5 has the same problem), AR SessionScopeWebModule. Tks! -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
