[Mono-aspnet-list] Cannot find MySQL Namespace

dragonbite dragonbite at gmail.com
Mon Apr 18 08:40:06 EDT 2011


Copying it into the /bin of the project and adding a reference finally
worked.  It did not work when I tried the same steps in Visual Studio for
some reason, but trying it again solved it.

Thanks for your feedback!

~D

On Sat, Apr 16, 2011 at 11:08 AM, Daniel J. Summers [via Mono] <
ml-node+3454095-1282084395-230561 at n4.nabble.com> wrote:

> 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.
>
> Daniel
>
> -----Original Message-----
> From: dragonbite <[hidden email]<http://user/SendEmail.jtp?type=node&node=3454095&i=0&by-user=t>>
>
> Sender: [hidden email]<http://user/SendEmail.jtp?type=node&node=3454095&i=1&by-user=t>
> Date: Fri, 15 Apr 2011 19:52:43
> To: <[hidden email]<http://user/SendEmail.jtp?type=node&node=3454095&i=2&by-user=t>>
>
> 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
> reference?.
>
> 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.
>
> Thanks.
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Cannot-find-MySQL-Namespace-tp3453402p3453402.html<http://mono.1490590.n4.nabble.com/Cannot-find-MySQL-Namespace-tp3453402p3453402.html?by-user=t>
> Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
> _______________________________________________
> Mono-aspnet-list mailing list
> [hidden email]<http://user/SendEmail.jtp?type=node&node=3454095&i=3&by-user=t>
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
> _______________________________________________
> Mono-aspnet-list mailing list
> [hidden email]<http://user/SendEmail.jtp?type=node&node=3454095&i=4&by-user=t>
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://mono.1490590.n4.nabble.com/Cannot-find-MySQL-Namespace-tp3453402p3454095.html
>  To unsubscribe from Cannot find MySQL Namespace, click here<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3453402&code=ZHJhZ29uYml0ZUBnbWFpbC5jb218MzQ1MzQwMnwxODM5MTE4ODQ4>.
>
>


--
View this message in context: http://mono.1490590.n4.nabble.com/Cannot-find-MySQL-Namespace-tp3453402p3457392.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/20110418/267f57da/attachment.html 


More information about the Mono-aspnet-list mailing list