Re: System.NullReference on connection.Open for 5.0.2?
Posted by: Mark Woody
Date: December 19, 2006 12:40PM

I have a problem that throws the null reference exception immediately after a MySqlException. The MySqlException reports the following:

MySql.Data.MySqlClient.MySqlException: Packets larger than max_allowed_packet are not allowed.
at MySql.Data.MySqlClient.MySqlStream.StartOutput(UInt64 length, Boolean resetSequence)
at MySql.Data.MySqlClient.NativeDriver.ExecuteCommand(DBCmd cmd, Byte[] bytes, Int32 length)
at MySql.Data.MySqlClient.NativeDriver.SetDatabase(String dbName)
at MySql.Data.MySqlClient.MySqlConnection.ChangeDatabase(String database)
at MySql.Data.MySqlClient.MySqlConnection.Open()


If I go backwards and use any of the 1.0.x connectors, everything works as expected without either of the 2 exceptions being thrown. Any ideas would be appreciated.



Edited 1 time(s). Last edit at 12/19/2006 10:53PM by Mark Woody.

Options: ReplyQuote


Subject
Written By
Posted
Re: System.NullReference on connection.Open for 5.0.2?
December 19, 2006 12:40PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.