[Mono-list] How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient
robertj at gmx.net
Mon Oct 23 14:07:36 EDT 2006
Andreas Färber wrote:
> Am 23.10.2006 um 19:26 schrieb Robert Jordan:
>> Dick Steflik wrote:
>>> When I put the .dll (MtSql.Data.dll in ny application /bin directory,
>>> everything works OK ; but when I remove it and put the reference in
>>> web.config (just like Robert said to the compiler can't find it.
>> Did you install the assembly into the GAC as already told
>> a few times? :-)
> Wasn't there a recent discussion about putting an assembly into
> Mono's GAC not being enough? I thought I overheard someone mentioning
> one additionally needed a symlink in one of the Mono directories for
> mcs to find it. Don't know much about ASP.NET though and whether this
> applies here, too.
That's necessary when compiling from the command line.
ASP.NET uses the same compiler, but one can specify the
assemblies either by their assembly name using the web.config
or by dropping them into the bin directory of the application.
Symlinking assemblies in $prefix/lib/mono/x.x/ should
work with both ASP.NET and normal apps, but it's a hack.
Normal apps and ASP.NET codebehind should use pkgconfig,
whereas plain ASP.NET (the aspx files) should use web.config
or the bin folder.
More information about the Mono-list