Problems with Mono 1.9 and Mysql Net 4.50

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
Jose Daniel Peña
Posts: 3
Joined: Sun 02 Sep 2007 15:21

Problems with Mono 1.9 and Mysql Net 4.50

Post by Jose Daniel Peña » 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.
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notifications: epoll
Architecture: x86
Disabled: none


Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Wed 19 Mar 2008 08:32

Unfortunately, we have not tested the product with this fresh version of MONO.
Please send me a small test project to reproduce the problem.
It is desirable to use 'test' schema objects, otherwise include the
definition of your own database objects.
Do not use third party components.
If it is impossible for you to create the test project, send us a piece of
your code where the error occurs.
It will help us greatly.

Post Reply