When I Publish my project in iis log4net doesn't work <p>When I debug it on Visual studio it works perfectly, but When I try to put it on my IIS directory it doesn't:</p> <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;configSections&gt; &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /&gt; &lt;/configSections&gt; &lt;log4net&gt; &lt;appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"&gt; &lt;param name="File" value="C:\\Users\\leandro\\Desktop\\Caderneta.log"/&gt; &lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock" /&gt; &lt;appendToFile value="true" /&gt; &lt;rollingStyle value="Size" /&gt; &lt;maxSizeRollBackups value="3" /&gt; &lt;maximumFileSize value="1MB" /&gt; &lt;staticLogFileName value="true" /&gt; &lt;layout type="log4net.Layout.PatternLayout"&gt; &lt;param name="ConversionPattern" value="%n%n%d [%t] %-5p %c %n %m%n"/&gt; &lt;/layout&gt; &lt;/appender&gt; &lt;root&gt; &lt;level value="Error" /&gt; &lt;appender-ref ref="LogFileAppender" /&gt; &lt;/root&gt; &lt;/log4net&gt; &lt;system.web&gt; &lt;compilation debug="true" targetFramework="4.0" /&gt; &lt;webServices&gt; &lt;protocols&gt; &lt;add name="HttpPost"/&gt; &lt;add name="HttpGet"/&gt; &lt;/protocols&gt; &lt;/webServices&gt; &lt;/system.web&gt; &lt;/configuration&gt; </code></pre> <p>First I tried just to put Caderneta.log on param name, but it doesn't looks been created. The path on my server exists for <code>C:\Users\leandro\Desktop\Caderneta.log</code>, but it still not creating the file Caderneta.</p>