[Pkg-mono-devel] HTTP error 500 when using libapache2-mod-mono and mod-apache-server

Dylan R. E. Moonfire d.moonfire at mfgames.com
Thu Sep 8 04:01:07 UTC 2005


On Wed, 2005-09-07 at 20:35 -0400, Matt Petteys wrote:
> I have been attempting to run a simple web application using libapache2-mod-mono
> but have run into a brick wall.  The web application is installed on a Debian

Just curious, if we can't figure it out, would you be willing to try the
1.0.9 packages I'm working on? Just to see if it is something added
since that version?

> linux box.  The box is based on the stable release but is mixed with some
> unstable packages that comprise the mono libraries.  The ASP.NET application
> functions properly when I use the XSP web server to access the application. 
> When I attempt to access the application via apache2, I receive a 500 error.
> 
> ==> /var/log/apache2/access.log <==
> X.X.X.X - - [07/Sep/2005:19:54:18 -0400] "GET /samples/ HTTP/1.1" 500 609 "-"
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511
> Firefox/1.0.4"
> 
> No other errors are generated in the apache logs and I am using a LogLevel of
> debug.  I have attempted to add the directive MonoDebug in

Normally, when I get a major bug like that, the error file has a strange
error up to 1-2 seconds later. That might also tell you if you are
having a permission or disconnect error.

> /etc/mono-server/mono-server-hosts.conf (which some online documentation
> references for additional debugging) but that directive does not appear to be
> supported by the debian version.

I would double check that the /etc/mono-server/mono-server-hosts.conf
has the same basic information as the /etc/xsp/debian.webapp file. Also,
double check that /etc/apache2/mods-enables/mod_mono.conf points
to /etc/mono-server/mono-server-hosts.conf. Double checking doesn't
hurt.

It probably wouldn't hurt to try retrieving a static image under that
same URL. Just to make sure you don't have a permission or .htaccess or
other type of error.

> The mod-mono-server.exe appears to start.  The socket appears to be successfully
> created in /tmp/.mod_mono_server.  The working directory of /tmp/.wapi is also
> created.
> 
> I can successfully started the daemon by stopping apache2, su to www-data, and
> starting /usr/share/dotnet/bin/mod-mono-server.exe.  It starts but I do not
> know how to continue to debug?

Try starting mod-mono-server.exe --verbose (I got that from the --help).
It might give you a bit more information as it runs.

> The packages that are installed:
> 
> ii  libapache2-mod 1.0.5-0pre1    Run ASP.NET Pages on UNIX with Apache 2 and
> ii  libmono0       1.1.8.2-0pre1  libraries for the Mono JIT
> ii  mono           1.1.8.2-0pre1  Mono CLI (.NET) runtime
> ii  mono-apache-se 1.0.5-0pre2    backend for mod_mono Apache module
> ii  mono-assemblie 1.1.8.2-0pre1  Mono class library - transistion package
> ii  mono-classlib- 1.1.8.2-0pre1  Mono class library (1.0)
> ii  mono-common    1.1.8.2-0pre1  common files for Mono
> ii  mono-jit       1.1.8.2-0pre1  fast CLI (.NET) JIT compiler for Mono
> ii  mono-mcs       1.1.8.2-0pre1  Mono C# compiler
> ii  mono-utils     1.1.8.2-0pre1  Mono utilities
> ii  mono-xsp       1.0.5-0pre2    simple web server to run ASP.NET application

Cheers!




More information about the Pkg-mono-devel mailing list