[Mono-aspnet-list] Cannot find MySQL Namespace
dragonbite
dragonbite at gmail.com
Sat Apr 16 10:54:58 EDT 2011
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
On 4/16/2011 9:38 AM, Robert Jordan [via Mono] wrote:
On
16.04.2011 04:52, dragonbite wrote:
> I am trying to set up a MySQL database for my ASP.NET
(Mono) web site.
>
> I have downloaded the Connector/Net 5.2.7 provider.
>
> I have tried putting it into the /bin directory.
>
> I have run sudo gacutil -i MySql.Data.dll and got the
message Installed
> MySql.Data.dll into the gac (/usr/lib/mono/gac).
>
> I have put in the Web.config file.
>
> I put on the code-behind page using MySql.Data;.
>
> And still I keep getting the message The type or namespace
name 'MySql'
> could not be found. Are you missing a using directive or an
assembly
> reference?.
Ensure that the assembly file name is "MySql.Data.dll". Check
its casing twice and reinsert it into the GAC.
The connector used to be distributed as "mysql.data.dll", which
is not the proper file name casing under case-sensitive
file systems.
Robert
_______________________________________________
Mono-aspnet-list mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
I did think about the case when trying to use "using ..." even so
far as to use copy-and-paste. The case is "MySql.Data" in;
1. extracted zip file
2. /usr/lib/mono/gac/
3. the /bin folder
4. when trying to use "using MySql.Data" in the code-behind page
I have tried re-inserting it a few times into the GAC using "sudo
gacutil -i MySql.Data.dll" (while in the same directory) and
received the confirmation message.
I just tried downloading mysql-connector-net-6.3.6-noinstall,
and inside that I find 2 directories; v2 and v4. Inside both of
those are more 4 (v4) or 5 (v2) .dll files;
1. mysql.data.cf.dll (in v2 directory only)
2. mysql.data.dll
3. mysql.data.entity.dll
4. mysql.visualstudio.dll
and
5. mysql.web.dll
Could one of these other .dll be better? Should I install the v2 or
v4 version into the GAC?
~Drew
--
View this message in context: http://mono.1490590.n4.nabble.com/Cannot-find-MySQL-Namespace-tp3453402p3454078.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110416/abb4c55b/attachment.html
More information about the Mono-aspnet-list
mailing list