[Mono-list] ASP.NET 2.0, apache2 and mod-mono-server2.exe
Fredrik Elestedt
fredrik at elestedt.com
Wed Nov 23 17:10:31 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Can anyone tell me how to configure the above mentioned combination
properly?
Apache module file:
# Set this to False if you manage your ASP.Net server through
# /etc/init.d/mod-mono-server
MonoRunXSP True
MonoServerPath "/usr/lib/xsp/2.0/mod-mono-server2.exe"
MonoUnixSocket "/tmp/mod_mono_server"
<IfModule !mod_mono.c>
LoadModule mono_module modules/mod_mono.so
</IfModule>
MonoAutoApplication enabled
MonoApplications "/:/var/www/test.old"
<IfModule mod_mime.c>
AddHandler mono .aspx .ashx .asmx .ascx .asax .config .ascx
</IfModule>
virtual-host file:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/var/www/localhost/htdocs"
<Directory "/var/www/localhost/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule peruser.c>
MinSpareProcessors 4
MaxProcessors 20
</IfModule>
</VirtualHost>
and finally the error log:
Unhandled Exception: System.Web.Compilation.ParseException: Unknown
attribute: Master
in <0x0003c> System.Web.UI.BaseParser:ThrowParseException (System.String
message)
Unhandled Exception: System.IO.EndOfStreamException: Failed to read past
end of stream.
in <0x000a7> System.IO.BinaryReader:ReadByte ()
in <0x00048> Mono.WebServer.ModMonoRequest:GetInitialData ()
Unhandled Exception: System.IO.EndOfStreamException: Failed to read past
end of stream.
in <0x000a7> System.IO.BinaryReader:ReadByte ()
in <0x00048> Mono.WebServer.ModMonoRequest:GetInitialData ()
I'm running Gentoo on the server.
mono, xsp and mod_mono are all version 1.1.10.
Compileflags:
CFLAGS="-O3 -march=athlon64 -fforce-address -momit-leaf-frame-pointer
- -fomit-frame-pointer -ftracer -pipe"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
MAKEOPTS="-j2"
Thanks in advance
// Fredrik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDhOjWc6mVxVAPRcURAqoyAKCtXcGh03tIZqhNPIetROihPP8arACgxTPQ
F3NH0pTL9ezRQruHf2F1pqY=
=GVbO
-----END PGP SIGNATURE-----
More information about the Mono-list
mailing list