Unrecognized configuration section log4net. web.config website
<p>I use log4net to log the errors in my web application and it works fine. However if I place the same code in website I get error "Unrecognized configuration section log4net"</p>

<p>here is my web.config section </p>

<p></p>

<pre><code>&lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,Log4net" requirePermission="false"/&gt;  
</code></pre>

<p></p>

<p></p>

<pre><code>&lt;root&gt;

  &lt;level value="RELEASE" /&gt;

  &lt;appender-ref ref="LogFileAppender" /&gt;

&lt;/root&gt;

&lt;appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender" &gt;

        &lt;param name="File" value="D:\ESSReport\Logs\ESSlog.log" /&gt;

        &lt;param name="AppendToFile" value="true" /&gt;

  &lt;rollingStyle value="Size" /&gt;

  &lt;maxSizeRollBackups value="5" /&gt;

  &lt;maximumFileSize value="4MB" /&gt;

  &lt;staticLogFileName value="true" /&gt;

  &lt;layout type="log4net.Layout.PatternLayout"&gt;

   &lt;param name="ConversionPattern" value="%newline%-5p%d{yyyy-MM-dd hh:mm:ss} [%thread] [%logger] [%line] %newline - %message"  /&gt;

  &lt;/layout&gt;

&lt;/appender&gt;
</code></pre>

<p></p>

<p>I have added dll to my website</p>
