日期:2014-05-20  浏览次数:20850 次

有关 Common.logging
在使用common.logging 与 log4net 记录日志时出现这样的错误:
Failed obtaining configuration for Common.Logging from configuration section 'common/logging'.
各位有遇到的吗? 

------解决方案--------------------
没遇到过,从错误来看是取节点的值时失败了。
------解决方案--------------------
如果你已经升级了Log4Net相关的DLL文件,会有这个问题,把APP.CONFIG中的配置改成下面这个
  
    <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net1211">
     
更详细的说明:
http://stackoverflow.com/questions/11368267/failed-obtaining-configuration-for-common-logging-from-configuration-section-co
------解决方案--------------------
 <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net1211">

注意标颜色的部分