Common.Logging configuration. Troubles with log4net adapter <p>Got the following exception</p> <blockquote> <p>Failed obtaining configuration for Common.Logging from configuration section 'common/logging'.</p> </blockquote> <p>while trying to run next code</p> <pre><code>Common.Logging.ILog logger = Common.Logging.LogManager.GetCurrentClassLogger(); </code></pre> <p>App.Config:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;configuration&gt; &lt;configSections&gt; &lt;sectionGroup name="common"&gt; &lt;section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" /&gt; &lt;/sectionGroup&gt; &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/&gt; &lt;/configSections&gt; &lt;common&gt; &lt;logging&gt; &lt;factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net"&gt; &lt;arg key="configType" value="INLINE" /&gt; &lt;/factoryAdapter&gt; &lt;/logging&gt; &lt;/common&gt; &lt;log4net&gt; &lt;root&gt; &lt;level value="ALL" /&gt; &lt;appender-ref ref="FileAppender" /&gt; &lt;/root&gt; &lt;appender name="FileAppender" type="log4net.Appender.FileAppender" &gt; &lt;param name="File" value="log.txt" /&gt; &lt;layout type="log4net.Layout.PatternLayout"&gt; &lt;conversionPattern value="%date [%thread] %level %logger - %message%newline" /&gt; &lt;/layout&gt; &lt;/appender&gt; &lt;/log4net&gt; &lt;connectionStrings&gt; &lt;add name="ManagementEntities" connectionString="metadata=res://*/Model.ManagementModel.csdl|res://*/Model.ManagementModel.ssdl|res://*/Model.ManagementModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=.\SQLEXPRESS;attachdbfilename=|DataDirectory|\Data\Management.mdf;integrated security=True;user instance=True;multipleactiveresultsets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt; &lt;/connectionStrings&gt; &lt;/configuration&gt; </code></pre>