C#/.Net Error: MySql.Data Object reference not set to an instance of an object
I get this exception on my Windows 7 64bit in application running in VS 2008 express. I am using Connector/Net 6.2.2.0:
Message:
Object reference not set to an instance of an object.
Source:
MySql.Data in MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
Stack trace:
in MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId)
in MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId)
in MySql.Data.MySqlClient.MySqlDataReader.NextResult()
in MySql.Data.MySqlClient.MySqlDataReader.Close()
in MySql.Data.MySqlClient.MySqlConnection.Close()
in 开发者_Go百科MySql.Data.MySqlClient.MySqlConnection.Dispose(Boolean disposing)
in System.ComponentModel.Component.Finalize()
No inner exception.
This exception is unhalted and the debugger dont point on any code line. It just say "Object reference not set to an instance of an object. MySql.Data"
This error is really hard to repeat. On my Windows XP 32bit is all ok. Could it be error in 64bit Windows 7?
Thank you very much for your answers. Regards, simon
Looks like Connector/Net 6.2.2. is not meant for 64 bit platform. ODBC connector available for 64 bit.
精彩评论