[Mono-bugs] [Bug 74190][Wis] New - Console.WriteLine gives UnauthorizedAccessException

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 29 Mar 2005 12:24:00 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by tauberer@for.net.

http://bugzilla.ximian.com/show_bug.cgi?id=74190

--- shadow/74190	2005-03-29 12:24:00.000000000 -0500
+++ shadow/74190.tmp.7906	2005-03-29 12:24:00.000000000 -0500
@@ -0,0 +1,63 @@
+Bug#: 74190
+Product: Mono: Tools
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: XSP
+AssignedTo: gonzalo@ximian.com                            
+ReportedBy: tauberer@for.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Console.WriteLine gives UnauthorizedAccessException
+
+Date: Sat, 12 Mar 2005 08:30:20 -0500
+From: Joshua Tauberer <tauberer@for.net>
+To: mono-devel-list@ximian.com
+Subject: Mod-mono-server: Console.WriteLine gives UnauthorizedAccessException
+
+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) 
+System.IO.FileStream:WriteInternal (byte[],int,int)
+in <0x00182> System.IO.FileStream:Write (byte[],int,int)
+in <0x00063> System.IO.StreamWriter:FlushBytes ()
+in <0x0003f> (wrapper remoting-invoke-with-check) 
+System.IO.StreamWriter:FlushBytes ()
+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
+
+http://taubz.for.net
+
+** Nothing Unreal Exists **