title: NLog in ASP.NET MVC5 does only log the first entries
body: <p>In my ASP.net MVC5 application, I have to use NLog.</p>
  
  <p>If I open the appliaction on my development-machine with the built-in IIS-express from visual studio, everything works very well.</p>
  
  <p>But if I publish the program to our testing-environment-IIS (An IIS 7), strange things happen:</p>
  
  <p>At application-start, everything works as intended. Every logging-entry is being logged.</p>
  
  <p>But as soon as my application performs the next request, for example a request to <code>/Controller/Method2</code>, it doesn't log anything.</p>
  
  <p>I can surf along on the application and no logs are being written, except once at application start the first few entries, and this only, if there was no previous .log-file.</p>
  
  <p>For me, it seems like a NLog-Config problem.</p>
  
  <p>My config, as following:</p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
  &lt;nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        throwExceptions="true" &gt;
  
    &lt;!-- http://nlog-project.org/wiki/File_target --&gt;
    &lt;!-- http://nlog-project.org/wiki/Layout_Renderers --&gt;
  
    &lt;targets&gt;
  
      &lt;target name="LogFile_Debug" xsi:type="File"
              layout="${longdate} [${processid} : ${threadid}] [${identity} - ${windows-identity}] ${level} - ${message} ${exception:Format=tostring}"
              fileName="D:/Logs/debug.log"
              archiveFileName="D:/Logs/Archive/debug.{#}.log"
              archiveEvery="Day"
              archiveNumbering="Rolling"
              maxArchiveFiles="60"
              concurrentWrites="true"
              keepFileOpen="false"
              encoding="ISO-8859-1"&gt;
      &lt;/target&gt;
    &lt;/targets&gt;
  
    &lt;rules&gt;
      &lt;logger name="*" minlevel="Debug" writeTo="LogFile_Debug" /&gt;
    &lt;/rules&gt;
  &lt;/nlog&gt;
  </code></pre>
  
  <p>I have tested with <code>keepFileOpen="true"</code> and <code>keepFileOpen="false"</code>, with <code>autoReload="true"</code> and <code>autoReload="false"</code> and nothing works. </p>
  
  <p>Any ideas?</p>