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:

<configuration>
<system.web>
<compilation>
<assemblies>
    <add assembly="MySql.Data, Version=x.x.x.x, Culture=neutral, 
PublicKeyToken=...."/>
</assemblies>
</compilation>
</system.web>
</configuration>

You can obtain the full assembly name with

gacutil -l | grep MySql

Robert

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to