[Mono-list] How to add assembly reference to Mono webapp
Gonzalo Paniagua Javier
Mon, 18 Aug 2003 15:33:23 +0200
El lun, 18-08-2003 a las 03:01, Wil Campbell escribió:
> Hi guys
> Sorry to contact you directly with a support issue, but we are trying to
> demo Mono as a (summer) term project tomorrow, and we've come up against
> a problem.
> We've created a simple web application. We defined a couple of classes
> which we need to make available to all pages, so we put them in a dll
> (mcs -out:bma.dll -target:library MainModel.cs Item.cs). We've placed
> bma.dll in the webapp's bin directory, and added
> <add assembly="*"/>
> inside <compilation> in web.config.
> However, when we attempt to <% @Import the classes in the namespace
> defined in bma.dll, the pages fail with the error that the namespace
> can't be found.
> Could you let us know what's we missed?
Yes. bma.dll should be in 'bin' directory. All assemblies in that
directory are referenced.