[Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient
robertj at gmx.net
Thu Oct 19 19:50:54 EDT 2006
You have to create web.config in the directory of the ASP.NET
application. Have a look at the test site that that gets
installed into $prefix/lib/xsp/test.
MySql.Data.MySqlClient is just a namespace. The assembly is
> I'm new at this, where do I find the web.config file, I've been looking
> around and it isn't obvious. Also, my the impot that is failing is
> "import MySql.Data.MySqlClient"; is that the assembly you are
> Dick Steflik
> Robert Jordan wrote:
>> Dick Steflik wrote:
>>> I can get Mono to build a command line program using MySql (and it
>>> runs nicely) but I have to tell the C# compiler where the dll is.
>>> How do I do this for ASP.NET using C#.
>>> I'm using Mono on FC5 with Apache and Mono 1.1.17....
>> Copy the MySql assembly into the bin folder of your ASP.NET app
>> or install the assembly into the GAC and specify the assembly name
>> in the web.config:
>> <add assembly="MySql.Data, Version=x.x.x.x, Culture=neutral,
>> You can obtain the full assembly name with
>> gacutil -l | grep MySql
>> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list