app.config文件的configation标签中加代码引起”配置系统未能初始化“

代码中用了一个dll.
而又需要在app.config中  添加log4net的 配置,于是就出错了,提示”配置系统未能初始化“ 
添加下面的代码 到configation中
<configSections>
        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="Http.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
        </sectionGroup>
      <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,Log4net"/>
    </configSections>
原文地址:https://www.cnblogs.com/totogo/p/4522574.html