[Mono-aspnet-list] Cannot find MySQL Namespace
Daniel J. Summers
daniel.summers.2415 at gmail.com
Sat Apr 16 11:08:34 EDT 2011
What's worked for me is...
1. Copy the file to /bin of the project.
2. Add the reference to that file to your project.
3. In the reference part of your project, set "Copy Local" to true (if it isn't already).
From here, "Build" and "Publish" should copy the DLL to the output /bin directory (AKA "bin deploying").
FWIW, on your other question re: the new connector - those other DLLs look like they're there to support Entity Framework and Visual Studio integration. See if there's a README in the archive that says what each one is for; MySql.Data.dll should be the ADO.NET provider.
From: dragonbite <dragonbite at gmail.com>
Sender: mono-aspnet-list-bounces at lists.ximian.com
Date: Fri, 15 Apr 2011 19:52:43
To: <mono-aspnet-list at lists.ximian.com>
Subject: [Mono-aspnet-list] Cannot find MySQL Namespace
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
Obviously I must me missing something, and quite likely something very
basic! I'm used to doing VB.NET ASP.NET with a MS SQL Server database and a
lot of this is set up by our System Administrator so please, don't assume I
know to do anything.
View this message in context: http://mono.1490590.n4.nabble.com/Cannot-find-MySQL-Namespace-tp3453402p3453402.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
Mono-aspnet-list mailing list
Mono-aspnet-list at lists.ximian.com
More information about the Mono-aspnet-list