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

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
Program.exe

I get this exception:

** (Program.exe:2495): WARNING **: Missing method
System.Data.Common.DbConnection::EnlistTransaction(Transaction) in assembly
/root/mono4/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll,
referenced in assembly /root/projects/ConsoleTest/MySql.Data.dll

Unhandled Exception: System.MissingMethodException: Method not found:
'System.Data.Common.DbConnection.EnlistTransaction'.
  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
unknown>:0

However when I directly load System.Data.dll assembly version 2.0.0.0
everything works perfectly. Is this a problem of MySql.Data.dll assembly
which is not compatible with System.Data.dll version 4.0.0.0?
-------------- 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