log4net does not write in IIS 6.0

traceyraccoon

New Member
I have the following log4net configuration:\[code\]<log4net><appender name="Console" type="log4net.Appender.ConsoleAppender"> <layout type="log4net.Layout.PatternLayout"> <!-- Pattern to output the caller's file name and line number --> <conversionPattern value="http://stackoverflow.com/questions/12162309/%date [%thread] %-5level %ndc - %message%newline" /> </layout></appender><appender name="RollingFile" type="log4net.Appender.RollingFileAppender"> <file value="http://stackoverflow.com/questions/12162309/file://localhost/C:/logs/mysystem.log" /> <appendToFile value="http://stackoverflow.com/questions/12162309/true" /> <lockingModel type="log4net.Appender.FileAppender+MinimalLock" /> <maximumFileSize value="http://stackoverflow.com/questions/12162309/1024MB" /> <maxSizeRollBackups value="http://stackoverflow.com/questions/12162309/30" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="http://stackoverflow.com/questions/12162309/%date [%thread] %-5level - %message%newline" /> </layout></appender><root> <level value="http://stackoverflow.com/questions/12162309/DEBUG" /> <appender-ref ref="Console" /> <appender-ref ref="RollingFile" /></root>\[/code\]in the local machine it works fine, but when I deploy the web site to the remote server (IIS 6.0) it does not create the log file despite the fact that the system is running.The AppPool identity is configured to "Network Service".Any idea?
 
Back
Top