[Mono-list] Debian Package + LibApache Mod_mono

Pablo Fischer pablo@pablo.com.mx
Fri, 23 Jan 2004 14:58:06 -0600


Thanks for the report!

I'll work tomorrow in it and work in the service (init.d).

See ya!
PD. You are using the .28 version or the cvs version? (of mono and mcs).
El jue, 22-01-2004 a las 14:38, Stuart Ballard escribi=F3:
> Pablo Fischer wrote:
> > Any bugs, please mail me :)
>=20
> The debian packages at present seem to not include an /etc/init.d script=20
> for starting mod-mono-server.exe, so I've tried writing one myself (via=20
> shameless copy-n-pasting from another one on my system), and I'm not=20
> having much luck so far. Maybe I shouldn't be trying to run the xsp=20
> process as www-data, but I can't think of any better user to use. (btw,=20
> I did make sure that www-data could read and write the root folder I=20
> specified, /home/sballard/unix-ivory - obviously, that's not a good=20
> location to use in general, but I wanted to get something working before=20
> picking the perfect location).
>=20
> I get the following error:
>=20
> Starting XSP: mod-mono-serverListening on: /tmp/mod_mono_server
> Root directory: /home/sballard/unix-ivory
>=20
> Unhandled Exception: System.UnauthorizedAccessException: Access to the=20
> path "" is denied.
>=20
> Server stack trace:
> in <0x00226> System.IO.File:Delete (string)
> in <0x000af> Mono.ASPNET.XSPApplicationHost:Start ()
> in (unmanaged) /usr/lib/libmono.so.0 [0x40056adc]
> in (unmanaged) /usr/lib/libmono.so.0(mono_runtime_invoke+0x35) [0x400a8dc=
2]
> in (unmanaged) /usr/lib/libmono.so.0(mono_runtime_invoke_array+0x21b)=20
> [0x400a9d35]
> in (unmanaged) /usr/lib/libmono.so.0 [0x400b0791]
> in <0x00193>=20
> System.Runtime.Remoting.RemotingServices:InternalExecuteMessage=20
> (System.MarshalByRefObject,System.Runtime.Remoting.Messaging.IMethodCallM=
essage)
>=20
>=20
> Exception rethrown at [0]:
>=20
> in <0x001da> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke=20
> (System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messag=
ing.IMessage,System.Exception&,object[]&)
> in (unmanaged) (wrapper remoting-invoke)=20
> Mono.ASPNET.XSPApplicationHost:Start ()
> in <0x00004> (wrapper remoting-invoke)=20
> Mono.ASPNET.XSPApplicationHost:Start ()
> in <0x0002f> (wrapper remoting-invoke-with-check)=20
> Mono.ASPNET.XSPApplicationHost:Start ()
> in <0x00344> Mono.ASPNET.Server:Main (string[])
>=20
> .
>=20
> I've attached the non-working init.d script in case anyone's interested.=20
> I had to create a /var/www/.wapi directory that was chowned to www-data=20
> in order to get past another error caused by the fact that www-data=20
> doesn't have write permissions to its own home directory. Can someone=20
> explain why xsp doesn't use /tmp for these files?
>=20
> Thanks in advance for any suggestions,
> Stuart.