Problems with Mono 1.9 and Mysql Net 4.50
Posted: Tue 18 Mar 2008 17:24
Hello, i am writting an application that runs on mono. I am using the mysql net 4.50
My application runs well with mono 1.26, but i tried to run it with the new mono 1.9 and crash with this problem:
Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type.
at CoreLab.Common.DbConnectionBase.n () [0x00000]
at CoreLab.Common.DbConnectionBase.get_ConnectionString () [0x00000]
at CoreLab.MySql.MySqlConnection.get_ConnectionString () [0x00000]
at CoreLab.MySql.MySqlConnection.Open () [0x00000]
at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable dataTable, IDbCommand command, CommandBehavior behavior) [0x00000]
at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable dataTable) [0x00000]
at (wrapper remoting-invoke-with-check) System.Data.Common.DbDataAdapter:Fill (System.Data.DataTable)
at Datos.DsUsuariosTableAdapters.usuariosTableAdapter.GetDataxCedula (System.String CEDULA) [0x00000]
The problem just appears when i have to make a query on my database with the MyDirect.Net connector. The rest works fine.
The version of mono is:
Mono JIT compiler version 1.9 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notifications: epoll
Architecture: x86
Disabled: none
PLEASE HELP ME!
My application runs well with mono 1.26, but i tried to run it with the new mono 1.9 and crash with this problem:
Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type.
at CoreLab.Common.DbConnectionBase.n () [0x00000]
at CoreLab.Common.DbConnectionBase.get_ConnectionString () [0x00000]
at CoreLab.MySql.MySqlConnection.get_ConnectionString () [0x00000]
at CoreLab.MySql.MySqlConnection.Open () [0x00000]
at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable dataTable, IDbCommand command, CommandBehavior behavior) [0x00000]
at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable dataTable) [0x00000]
at (wrapper remoting-invoke-with-check) System.Data.Common.DbDataAdapter:Fill (System.Data.DataTable)
at Datos.DsUsuariosTableAdapters.usuariosTableAdapter.GetDataxCedula (System.String CEDULA) [0x00000]
The problem just appears when i have to make a query on my database with the MyDirect.Net connector. The rest works fine.
The version of mono is:
Mono JIT compiler version 1.9 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notifications: epoll
Architecture: x86
Disabled: none
PLEASE HELP ME!