title: Log4Net section in Web.Config generates Error
body: <p>So I am trying to set up Log4Net in my Web .NET 4.0 application.  I have added the correct .dll to my project and have appended the following to my Web.Config file as starters:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;configSections&gt;
  &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/&gt;
  &lt;root&gt;
    &lt;level value="DEBUG" /&gt;
    &lt;appender-ref ref="RollingLogFileAppender" /&gt;
  &lt;/root&gt;
  &lt;/configSections&gt;
   &lt;log4net debug="true"&gt;
   &lt;appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
    &lt;file value="C:\\TestProj\\TestLog.txt" /&gt;
    &lt;appendToFile value="true" /&gt;
    &lt;rollingStyle value="Size" /&gt;
    &lt;maxSizeRollBackups value="10" /&gt;
    &lt;maximumFileSize value="10MB" /&gt;
    &lt;staticLogFileName value="true" /&gt;
    &lt;layout type="log4net.Layout.PatternLayout"&gt;
      &lt;conversionPattern value="%-5p %d %5rms %-22.22c{1} %-18.18M - %m%n" /&gt;
    &lt;/layout&gt;
   &lt;/appender&gt;
  </code></pre>
  
  <p></p>
  
  <p>However, if I append the "log4net" section to Web.Config, I will receive the error message </p>
  
  <blockquote>
    <p>Unable to start debugging on the web server.  See help for common
    configuration problems.....</p>
    
    <p>Make sure the server is running correctly.  Verify there are no syntax
    errors in the web.config........</p>
  </blockquote>
  
  <p><strong>NOTE</strong>
  I can remove all the internals of this section and leave only the declaration:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;log4net&gt;&lt;/log4net&gt;
  </code></pre>
  
  <p>and I will still get the same error.</p>
  
  <p>Can someone give me some pointers on how to track down this error?</p>