[Mono-list] Method not found: 'System.Data.Common.DbConnection.EnlistTransaction' in System.Data Version

Tomi bosak.tomas at gmail.com
Wed Dec 16 07:19:55 EST 2009

Hi folks,

I have compiled and installed Mono tarball daily package from 2009 12 15
with C# 4.0 profile. I created simple console application which retrieves
data from MySQL database (using MySql.Data.dll assembly) with ADO.NET. When
I compile source code and run application like this:

root at vps-19-ubuntu-server:~/projects/ConsoleTest# ../../mono4/bin/dmcs
Program.cs AdoNetMapper.cs -r:System.Data -r:MySql.Data.dll
root at vps-19-ubuntu-server:~/projects/ConsoleTest# ../../mono4/bin/mono

I get this exception:

** (Program.exe:2495): WARNING **: Missing method
System.Data.Common.DbConnection::EnlistTransaction(Transaction) in assembly
referenced in assembly /root/projects/ConsoleTest/MySql.Data.dll

Unhandled Exception: System.MissingMethodException: Method not found:
  at (wrapper remoting-invoke-with-check)
MySql.Data.MySqlClient.MySqlConnection:Open ()
  at ConsoleTest.AdoNetMapper.GetUsers () [0x00000] in <filename unknown>:0
  at ConsoleTest.Program.Main (System.String[] args) [0x00000] in <filename

However when I directly load System.Data.dll assembly version
everything works perfectly. Is this a problem of MySql.Data.dll assembly
which is not compatible with System.Data.dll version
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20091216/89dfb15c/attachment.html 

More information about the Mono-list mailing list