title: log4net configuration - failed to find section
body: <p>This is my error message:</p>
  
  <pre><code>log4net:ERROR XmlConfigurator: Failed to find configuration section 'log4net' in the application's .config file. Check your .config file for the &lt;log4net&gt; and &lt;configSections&gt; elements. The configuration section should look like: &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /&gt;
  </code></pre>
  
  <p>this is my web.config:</p>
  
  <pre><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;system.serviceModel&gt;
     ...
     &lt;/system.serviceModel&gt;
  
     &lt;connectionStrings&gt;
     ...
     &lt;/connectionStrings&gt;
  
     &lt;log4net&gt;
     ...
     &lt;/log4net&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>What is wrong with my config?</p>
  
  <p><em>Update:</em></p>
  
  <p>Have also Web.Release.config:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;    
  &lt;configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"&gt;
  
      &lt;system.web&gt;
          &lt;compilation xdt:Transform="RemoveAttributes(debug)" /&gt;
      &lt;/system.web&gt;
  
      &lt;system.serviceModel&gt;
      ...
      &lt;/system.serviceModel&gt;
  
      &lt;connectionStrings&gt;
      ...
      &lt;/connectionStrings&gt;
  
      &lt;log4net&gt;
      ...   
         &lt;root&gt;
            &lt;level value="DEBUG" xdt:Transform ="Replace"/&gt;
         &lt;/root&gt;
      &lt;/log4net&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Web.Test.cofig - the same as Release one</p>
  
  <p>and Web.Debug.config, that is empty:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  
  &lt;configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"&gt;    
  
  &lt;/configuration&gt;
  </code></pre>