Skip navigation links

MySQL Forums :: C#, Mono, .Net :: Problem with MySQL and C# using Monodevelop Linux Ubuntu


Advanced Search

Problem with MySQL and C# using Monodevelop Linux Ubuntu
Posted by: Carlos Cardenas ()
Date: May 14, 2010 07:58AM

Hi all.
I'm a following some on line tutorials about using MySQL with C# in Mono. I'm working with the MonoDevelop IDE and using this link as reference

http://paraisolinux.com/mono-y-mysql-parte-1/
http://paraisolinux.com/mono-y-mysql-parte-2/

Those are Spanish tutorials. But when I try to run the app I've got this warnings

** (MySQL:1808): WARNING **: The following assembly referenced from /home/necroside/Projects/MySQL/MySQL/bin/Debug/MySQL.exe could not be loaded:
     Assembly:   MySql.Data    (assemblyref_index=2)
     Version:    5.2.7.0
     Public Key: c5687fc88969c44d
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/necroside/Projects/MySQL/MySQL/bin/Debug/).


** (MySQL:1808): WARNING **: Could not load file or assembly 'MySql.Data, Version=5.2.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.

** (MySQL:1808): WARNING **: Missing method .ctor in assembly /home/necroside/Projects/MySQL/MySQL/bin/Debug/MySQL.exe, type MySql.Data.MySqlClient.MySqlConnection

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=5.2.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
File name: 'MySql.Data, Version=5.2.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
  at MySQL.MainClass.Main (System.String[] args) [0x00005] in /home/necroside/Projects/MySQL/MySQL/Main.cs:11

So I checked the references of the project and mysql.data.dll and Mono.Data are both referenced (Also mysql.data.dll is in the exe folder). Also I checked the code and I can't find any mistake.

I can post the code if anyone needs it.

Options: ReplyQuote


Subject Written By Posted
Problem with MySQL and C# using Monodevelop Linux Ubuntu Carlos Cardenas 05/14/2010 07:58AM
Re: Problem with MySQL and C# using Monodevelop Linux Ubuntu Darrell Mayson 05/22/2010 07:51PM
Re: Problem with MySQL and C# using Monodevelop Linux Ubuntu Brett Rogers 06/11/2010 03:19PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.