[Mono-list] mod_mono and dll references

Gonzalo Paniagua Javier gonzalo at ximian.com
Fri Dec 2 15:40:41 EST 2005

On Fri, 2005-12-02 at 20:15 +0100, Jurek Bartuszek wrote:
> Hash: RIPEMD160
> Hi!
> What could be the reason for mod_mono not looking into the bin/
> directory for .dll files? I have an application, where file.aspx.cs
> contains:
> ReversiButton rb = new ReversiButton(i, j);
> The ReversiButton class definition is placed in a separate file
> ReversiButton.cs. I've placed the ReversiButton.dll in the bin/ directory:
> mcs ReversiButton.cs -r:System.Web -r:System.Drawing -r:System.Data
> - -target:library
> mv ReversiButton.dll bin/
> However, when I run file.aspx, I get an application error:
> Compilation Error
> Description: Error compiling a resource required to service this
> request. Review your source file and modify it to fix this error.
> Error message:
> /home/koxta/public_html/aspnet/ex12/Gameplay.aspx.cs(123,6) : error
> CS0246: The type or namespace name `ReversiButton' could not be found.
> Are you missing a using directive or an assembly reference?

This has nothing to do with mod_mono. It's just that you need the
@Import for the namespace in which ReversiButton is defined (<%@ Import
namespace="blah" %>).


More information about the Mono-list mailing list