[Mono-dev] sharing violation on log4net
Carlos Solorzano
carlos at applianz.com
Mon Nov 28 18:22:08 EST 2005
I am getting a sharing violation exception a lot since upgrading to mono
1.1.10, the code used to work a lot more often without that exception on
mono 1.1.9.2
What its really bothering me now is that the sharing violation not only
ocurrs after mono is completely closed and restarted but I am even
getting it after system reboots, it makes no sense why that would happen.
Below is the exception I get:
log4net:ERROR [RollingFileAppender]
OpenFile(/home/user/program.log,True) call failed.
System.IO.IOException: Sharing violation on path /home/user/program.log
in <0x00401> System.IO.FileStream:.ctor (System.String name, FileMode
mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean
isAsync, Boolean anonymous)
in <0x00046> System.IO.FileStream:.ctor (System.String name, FileMode
mode, FileAccess access, FileShare share)
in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
in <0x00142> System.IO.StreamWriter:.ctor (System.String path, Boolean
append, System.Text.Encoding encoding, Int32 bufferSize)
in <0x00035> System.IO.StreamWriter:.ctor (System.String path, Boolean
append, System.Text.Encoding encoding)
in (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor
(string,bool,System.Text.Encoding)
in <0x00142> log4net.Appender.FileAppender:OpenFile (System.String
fileName, Boolean append)
in <0x001af> log4net.Appender.RollingFileAppender:OpenFile
(System.String fileName, Boolean append)
in <0x0008a> log4net.Appender.FileAppender:ActivateOptions ()
More information about the Mono-devel-list
mailing list