[Mono-list] mod_mono exception

Michael C McHugh mcm75@dana.ucc.nau.edu
Thu, 16 Oct 2003 13:55:06 -0700 (MST)

It appers that when I attempt to start mod_mono with more than one
application path it dies with an Unhandled Exception...

Unhandled Exception: System.ArgumentException: Should be something like

Server stack trace:
in <0x00208> Mono.ASPNET.XSPApplicationHost:SetApplications (string)
in (unmanaged) /usr/local/mono/lib/libmono.so.0 [0x400468a3]
in (unmanaged) /usr/local/mono/lib/libmono.so.0(mono_runtime_invoke+0x27)
in (unmanaged)
in (unmanaged) /usr/local/mono/lib/libmono.so.0 [0x4009bafd]
in <0x00193>

Exception rethrown at [0]:

in <0x001da> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
in (unmanaged) (wrapper remoting-invoke)
Mono.ASPNET.XSPApplicationHost:SetApplications (string)
in <0x00004> (wrapper remoting-invoke)
Mono.ASPNET.XSPApplicationHost:SetApplications (string)
in <0x00032> (wrapper remoting-invoke-with-check)
Mono.ASPNET.XSPApplicationHost:SetApplications (string)
in <0x00303> Mono.ASPNET.Server:Main (string[])

My mod-mono-server.exe.config is in the same directory as the .exe and the
paths that I am trying to serve with mono are in my httpd.conf   ie when
dealing with just index.html they are fine.

The affected part of my mod-mono-server.exe.conf is as follows

        <add key="UnixSocketFileName" value="/tmp/mod_mono_server"/>
        <add key="MonoServerPort" value="80" />
        <add key="MonoApplications"
        <add key="MonoServerDefaultIndexFiles"
             value="index.aspx, Default.aspx, default.aspx, index.html,
index.htm" />

Like I said when MonoApplications just consists of a single directory all
is fine, when I try to add a second I get the error.

xsp.exe also dies the same way with the same error if called from the
command line

Any ideas?