[Mono-list] FW: newbie: "using System.Data.MySql" fails

Nicolas Inconnu ncornu-telecomitalia at hotmail.fr
Tue Sep 18 10:21:53 EDT 2007

From: ncornu-telecomitalia at hotmail.frTo: r_ahimsa_m at poczta.onet.plSubject: RE: [Mono-list] newbie: "using System.Data.MySql" failsDate: Tue, 18 Sep 2007 16:16:28 +0200

>> using System.Data.MySql; Isn't it MySql.Data or something like this.> Date: Mon, 17 Sep 2007 08:28:46 -0700> From: r_ahimsa_m at poczta.onet.pl> To: mono-list at lists.ximian.com> Subject: [Mono-list] newbie: "using System.Data.MySql" fails> > > Hello> I am writing my first Mono console application that connects to MySQL> database. I have installed MySQL 5.0, I installed MySQL Connector .NET> driver and I copied it to GAC with a command: sudo gacutil -i> MySql.Data.dll. I have created new C# project (TestMono) in MonoDevelop with> such code:> > using System;> using System.Data.MySql;> namespace TestMono> {> class MainClass> {> public static void Main(string[] args)> {> ...> }> }> }> > The problem is that I receive a compile error:> > [Task:File=/home/robert/Projects/TestMono/TestMono/Main.cs, Line=2,> Column=1, Type=Error, Description=The type or namespace name> `System.Data.MySql' could not be found. Are you missing a using directive or> an assembly reference?(CS0246)> > I also tried to add reference to copy of MySql.Data.dll but I got the same> message. However, I would prefer to have my driver in GAC.> > Could anyone help me please to solve the problem?> Thanks!> /RAM/> -- > View this message in context: http://www.nabble.com/newbie%3A-%22using-System.Data.MySql%22-fails-tf4467521.html#a12738235> Sent from the Mono - General mailing list archive at Nabble.com.> > _______________________________________________> Mono-list maillist - Mono-list at lists.ximian.com> http://lists.ximian.com/mailman/listinfo/mono-list

Besoin d'un e-mail ? Créez gratuitement un compte Windows Live Hotmail, plus sûr, plus simple et plus complet ! Windows Live Hotmail 
Retrouvez tous les services Windows Live sur votre mobile !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070918/91adb259/attachment.html 

More information about the Mono-list mailing list