title: log4net doesn't create log file when deployed on IIS7
body: <p>Good morning everybody, </p>
  
  <p>I have a log4net issue that didn't exist when I was developing on my 
  local machine, but once I deployed the application to a server, log4net stopped working.</p>
  
  <p>This is the server configuration :
      -Windows XP SP3
      -IIS 7
      -framework .Net v4</p>
  
  <p>This is the log4net configuration in the web.config of the website:</p>
  
  <pre><code>&lt;configuration&gt;
        &lt;log4net&gt;
          &lt;root&gt;
            &lt;level value="DEBUG" /&gt;
            &lt;appender-ref ref="LogFileAppender" /&gt;
          &lt;/root&gt;
          &lt;appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
            &lt;param name="File" value="log.txt" /&gt;
            &lt;param name="AppendToFile" value="true" /&gt;
            &lt;rollingStyle value="Size" /&gt;
            &lt;maxSizeRollBackups value="10" /&gt;
            &lt;maximumFileSize value="30MB" /&gt;
            &lt;staticLogFileName value="false" /&gt;
            &lt;layout type="log4net.Layout.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="%-5p%d{yyyy-MM-dd hh:mm:ss} – %m%n" /&gt;
            &lt;/layout&gt;
          &lt;/appender&gt;
        &lt;/log4net&gt;
      &lt;/configuration&gt;
  </code></pre>
  
  <p>I also have a class library and this is its App.config file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,Log4net"/&gt;
    &lt;/configSections&gt;
    &lt;log4net&gt;
      &lt;root&gt;
        &lt;level value="DEBUG" /&gt;
        &lt;appender-ref ref="LogFileAppender" /&gt;
      &lt;/root&gt;
      &lt;appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender" &gt;
        &lt;param name="File" value="log.txt" /&gt;
        &lt;param name="AppendToFile" value="true" /&gt;
        &lt;rollingStyle value="Size" /&gt;
        &lt;maxSizeRollBackups value="10" /&gt;
        &lt;maximumFileSize value="30MB" /&gt;
        &lt;staticLogFileName value="true" /&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%-5p%d{yyyy-MM-dd hh:mm:ss} – %m%n" /&gt;
        &lt;/layout&gt;
      &lt;/appender&gt;
    &lt;/log4net&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>This is how I call the log function on every class:</p>
  
  <pre><code>private static readonly ILog log = LogManager.GetLogger(typeof(AppDomain));
  </code></pre>
  
  <p>...and this is how i call it :</p>
  
  <pre><code>log.Error("\n\t=&gt;" + ex.GetBaseException().Message + "\n\r" + " @ " + Environment.StackTrace);
  </code></pre>