[Mono-dev] Mono and MySql.Data problem - System.Transactions

Rafael Teixeira monoman at gmail.com
Wed May 18 07:26:16 EDT 2011


Did you pass your app in MoMA? I'm quite sure System.Transactions is
incomplete in Mono, so probably you're bumping on some missing/bugged part
of it. Bug reports with some code to reproduce the problem are welcome, but
I don't know where should you post it.

Regards,

Rafael "Monoman" Teixeira
---------------------------------------
"The most exciting phrase to hear in science, the one that heralds new
discoveries, is not 'Eureka!' (I found it!) but 'That's funny ...'"
Isaac Asimov
US science fiction novelist & scholar (1920 - 1992)


On Mon, May 16, 2011 at 5:58 PM, SamHellawell <samlikeswilly at live.co.uk>wrote:

> Hey there!
>
> So basically, after hours setting up my Ubuntu VPS to get Mono to run my
> application (CLI), I get this error when trying to use MySQL:
>
> [ERROR] MySQL getCommand: Invalid IL code in
> System.Transactions.Transaction:get_Current (): method body is empty.
> [ERROR] MySQL getString: Object reference not set to an instance of an
> object
>
> The getString method generates a command from getCommand, which is:
>        public MySqlCommand getCommand(string query)
>        {
>            try
>            {
>                if (connection.State != System.Data.ConnectionState.Closed)
>                {
>                    connection.Close();
>                }
>
>                MySqlCommand command = newCommand();
>                command.CommandText = query;
>                connection.Open();
>                return command;
>            }
>            catch (Exception e)
>            {
>                Log.Error("MySQL getCommand: " + e.Message);
>                return null;
>            }
>        }
>
> The method newCommand() just returns connection.CreateCommand() - something
> along those lines, don't have the source here.
>
> Anybody have any ideas? I've tried uninstalling and install mono, many
> types
> of MySql.Data (in gac also).
>
> Thanks, Sam.
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Mono-and-MySql-Data-problem-System-Transactions-tp3527428p3527428.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110518/d04524ac/attachment.html 


More information about the Mono-devel-list mailing list