[Mono-list] I having a problem setting up mono with apache

Kyle Corupe kyle.corupe at gmail.com
Wed Feb 6 16:28:50 EST 2008


Box is running CentOS 5, I'm stuck and can't figure out why its not
working, any ideas?

 I get a 503 when I try and go to the xsp test pages that I copied to
my rootweb dir

 "Service Temporarily Unavailable"

 This is the error msgs I see in the apache error_log

----
** (/usr/lib/mono/2.0/mod-mono-server2.exe:15123): WARNING **: Could
not find assembly Mono.WebServer2, references from /u
sr/lib/mono/2.0/mod-mono-server2.exe (assemblyref_index=1)
     Major/Minor: 0,2
     Build:       0,0
     Token:       0738eb9f132ed756
System error: No such file or directory

cannot open assembly /usr/lib/mono/2.0/mod-mono-server2.exe
---



Here is the mono.conf in /etc/httpd/conf.d/
---
# mod_mono.conf

# Acthung! This file may be overwritten
# Use 'include mod_mono.conf' from other configuration file
# to load mod_mono module.

<IfModule !mod_mono.c>
    LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so
    MonoServerPath "/usr/bin/mod-mono-server2"
    MonoAutoApplication enabled

    AddType application/x-asp-net .aspx
    AddType application/x-asp-net .asmx
    AddType application/x-asp-net .ashx
    AddType application/x-asp-net .asax
    AddType application/x-asp-net .ascx
    AddType application/x-asp-net .soap
    AddType application/x-asp-net .rem
    AddType application/x-asp-net .axd
    AddType application/x-asp-net .cs
    AddType application/x-asp-net .config
    AddType application/x-asp-net .Config
    AddType application/x-asp-net .dll
    DirectoryIndex index.aspx
    DirectoryIndex Default.aspx
    DirectoryIndex default.aspx
</IfModule>


More information about the Mono-list mailing list