[MonoDevelop] Problems using MySQL

jmalcolm malcolm.justin at gmail.com
Thu May 5 16:34:58 EDT 2011


It looks to me like you are trying to use the .NET 4 version of
MySql.Data.dll with Mono 2.6.7. You need to use a version of the connector
that was compiled for .NET 2.0 or .NET 3.5.

Mono 2.6.7 does not support the version 4.0 assemblies. You need Mono 2.8+
for that.

Try using the contents of the "v2" directory instead.


Spitfire777 wrote:
> 
> Hi,
> 
> I'm running MonoDevelop 2.4 (German) under Ubuntu 11.04 with the native
> Mono-Compiler (Mono JIT compiler version 2.6.7 (Debian 2.6.7-5ubuntu3)).
> 
> Now I'm trying to make the MySQL-Connector/NET run with C#. So I've
> downloaded the Connector/Net 6.3.6 from the official Website, unpacked it
> and moved the content of the "v4" folder to my project's bin folder. 
> After that I did a right-click on "links" (may differ in the english
> version) in the project menu, "edit links", ".NET-Assembly", went to the
> bin folder and added all *.dll files to the project.
> 
> First, I got an error message like "Could not load file or assembly
> MySql.Data. Then I saw that the file names of the DLLs were written in
> lower case, so I renamed all of them to the correct casing.
> 
> But now when I try to run my program, I get the following exception:
> 
** (/home/spitfire777/Projects/Hausaufgabe 2/Hausaufgabe
2/bin/Debug/Hausaufgabe 2.exe:13349): WARNING **: Could not load file or
assembly 'System.Transactions, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one of its dependencies.
> 
> Unhandled Exception: System.IO.FileNotFoundException: Could not load file
> or assembly 'System.Transactions, Version=4.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089' or one of its dependencies.
> File name: 'System.Transactions, Version=4.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089'
>   at AcronymII.AcronymConverter.LoadAcronyms () [0x000b5] in
> /home/spitfire777/Projects/Hausaufgabe 2/Hausaufgabe
> 2/AcronymConverter.cs:47 
>   at AcronymII.AcronymConverter.ConvertText () [0x00000] in
> /home/spitfire777/Projects/Hausaufgabe 2/Hausaufgabe
> 2/AcronymConverter.cs:55 
>   at AcronymII.Application.Run () [0x00021] in
> /home/spitfire777/Projects/Hausaufgabe 2/Hausaufgabe 2/Application.cs:92 
>   at AcronymII.Application.Main (System.String[] args) [0x0002e] in
> /home/spitfire777/Projects/Hausaufgabe 2/Hausaufgabe 2/Application.cs:143 
> 

> 
> So, what could I do?
> 


--
View this message in context: http://mono.1490590.n4.nabble.com/Problems-using-MySQL-tp3499280p3499419.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list