title: log4net not logging in ASP.Net anymore
body: <p>We have two ASP.Net Web-forms applications. One is a sub-application of the other in IIS. Both applications use log4net for logging and both applications keep their log4net configuration in their web.config files.</p>
  
  <p>Since the last deploy the child applications are not logging anymore. Does anyone have experience with such issues?</p>
  
  <p><strong>Details</strong></p>
  
  <p>The strange part is that it worked before. I have tried wrapping the parent configuration part into </p>
  
  <pre><code>&lt;location path="." inheritInChildApplications="false"&gt;
  </code></pre>
  
  <p>parts with no effect. I noticed though that when the parent application was stopped the logging resumed correctly. Putting the parent application offline the second time did not start logging. Is there some kind of configuration caching when inheriting configuration from parent applications?</p>
  
  <p>Configuration part in web.config:</p>
  
  <pre><code>&lt;configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"&gt;
      &lt;configSections&gt;
          &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /&gt;
      &lt;/configSections&gt;
      &lt;!-- ... Other content --&gt;
      &lt;log4net&gt;
          &lt;appender name="Console" type="log4net.Appender.ConsoleAppender"&gt;
              &lt;layout type="log4net.Layout.PatternLayout"&gt;
                  &lt;!-- Pattern to output the caller's file name and line number --&gt;
                  &lt;conversionPattern value="%5level [%thread] (%file:%line) - %message%newline" /&gt;
              &lt;/layout&gt;
          &lt;/appender&gt;
          &lt;appender name="AppRollingFile" type="log4net.Appender.RollingFileAppender"&gt;
              &lt;file value=".\Logs\Application.log" /&gt;
              &lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock" /&gt;
              &lt;appendToFile value="true" /&gt;
              &lt;maximumFileSize value="10000KB" /&gt;
              &lt;maxSizeRollBackups value="5" /&gt;
              &lt;layout type="log4net.Layout.PatternLayout"&gt;
                  &lt;conversionPattern value="[%-5level][%d{yy-MM-dd HH:mm:ss,fff}][%file:%L] %m%n" /&gt;
              &lt;/layout&gt;
          &lt;/appender&gt;
          &lt;root&gt;
              &lt;level value="DEBUG" /&gt;
              &lt;appender-ref ref="Console" /&gt;
              &lt;appender-ref ref="AppRollingFile" /&gt;
          &lt;/root&gt;
      &lt;/log4net&gt;
  &lt;/configuration&gt;
  </code></pre>