[Mono-list] mod_mono exception

yoros@wanadoo.es yoros@wanadoo.es
Fri, 17 Oct 2003 11:36:00 +0200


On Thu, Oct 16, 2003 at 01:55:06PM -0700, Michael C McHugh wrote:
> 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
> 

I think it could be a documentation bug. The string from one application
to another is separated by "," not by ";".

See you,

    Pedro

-- 
Pedro Martínez Juliá
\  yoros@terra.es
)|    yoros@wanadoo.es
/        http://yoros.dyndns.org
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information:  pub  1024D/74F1D3AC
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC