[Mono-list] mod_mono and dll references

Jurek Bartuszek koxta at koxta.net
Fri Dec 2 14:15:58 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
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?
/home/koxta/public_html/aspnet/ex12/Gameplay.aspx.cs(178,4) : error
CS0246: The type or namespace name `ReversiButton' could not be found.
Are you missing a using directive or an assembly reference?

How can I tell mono to search for assemblies in bin/?

Best regards,

Jurek Bartuszek

P.S. The MonoAutoApplication option is enabled.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDkJ1u6l8uJkeTVlMRAyIgAJ9Cf2PbYUytyp/mHnUhBQEFlLDhDwCfaUfp
HWGfMiQ51sg01Mt1ljgNNZs=
=ueqS
-----END PGP SIGNATURE-----


More information about the Mono-list mailing list