如果配置文件中包含了configSections,那么configSections的下一个节点,必须是configSections里面的元素
<configSections>
<section name ="log4net" type ="System.Configuration.IgnoreSectionHandler"/>
</configSections>
<log4net>
</log4net>
原文:http://www.cnblogs.com/chucklu/p/5358453.html