[Mono-aspnet-list] Cannot find MySQL Namespace

Robert Jordan robertj at gmx.net
Sat Apr 16 09:37:55 EDT 2011

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.


More information about the Mono-aspnet-list mailing list