[Mono-devel-list] Mod-mono-server: Console.WriteLine gives UnauthorizedAccessException
tauberer at for.net
Sat Mar 12 08:30:20 EST 2005
Hey, Gonzalo. Sometimes I'm finding this in my httpd error_log. It
might be just after restarting mod-mono-server, I'm not entirely sure.
But I think it was preventing mod-mono-server from restarting properly.
Unhandled Exception: System.UnauthorizedAccessException: Access to the
path "[Unknown]" is denied.
in <0x00076> System.IO.FileStream:WriteInternal (byte,int,int)
in <0x0006b> (wrapper remoting-invoke-with-check)
in <0x00182> System.IO.FileStream:Write (byte,int,int)
in <0x00063> System.IO.StreamWriter:FlushBytes ()
in <0x0003f> (wrapper remoting-invoke-with-check)
in <0x00052> System.IO.StreamWriter:Flush ()
in <0x0000d> System.IO.UnexceptionalStreamWriter:Flush ()
in <0x0005b> System.IO.StreamWriter:Write (string)
in <0x00010> System.IO.UnexceptionalStreamWriter:Write (string)
in <0x0000e> System.IO.TextWriter:WriteLine (string)
in <0x00035> System.IO.SynchronizedWriter:WriteLine (string)
in <0x00015> System.Console:WriteLine (string)
in <0x008e0> Mono.ASPNET.Server:Main (string)
It's a strange error. Looks like maybe this results from Apache
redirecting standard out to... I don't know, nothingness? I replaced
all of the Console.WriteLines with Console.Error.WriteLines in server.cs
and so far that seems to fix it. It's also nice seeing some of that
output in the error_log.
I'm restating mod-mono-server through my control panel in mod_mono that
I wrote about a while back, so the re-forked process should (?) have the
same general environment as the original/normal mod_mono-spawned one.
Have you seen this before?
- Joshua Tauberer
** Nothing Unreal Exists **
More information about the Mono-devel-list