[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
VPath:realpath

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)
[0x40094690]
in (unmanaged)
/usr/local/mono/lib/libmono.so.0(mono_runtime_invoke_array+0x1f0)
[0x4009546e]
in (unmanaged) /usr/local/mono/lib/libmono.so.0 [0x4009bafd]
in <0x00193>
System.Runtime.Remoting.RemotingServices:InternalExecuteMessage
(System.MarshalByRefObject,System.Runtime.Remoting.Messaging.IMethodCallMessage)


Exception rethrown at [0]:

in <0x001da> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
(System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&)
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

 <appSettings>
        <add key="UnixSocketFileName" value="/tmp/mod_mono_server"/>
        <add key="MonoServerPort" value="80" />
        <add key="MonoApplications"
value="/:.;/~test1:/export/home/test1/public_html;/~testaccount:/home/testaccount/public_html"
/>
        <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?