The configuration section for Logging cannot be found in the configuration source

本文解决了一个C/S程序在调用B/S项目中WebService时遇到的配置错误:The configuration section for Logging cannot be found in the configurationsource。通过在Web.config中加入指定的<configSections>标签,成功解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

背景描述:

一个C/S的程序,在调用一个B/S项目中的WebSerivce时,报错:

The configuration section for Logging cannot be found in the configuration source

经过搜索,得知B/S项目的配置文件有问题。


解决方法:

在B/S项目的配置文件Web.config中的节点<configSections>加入下面的内容

<configSections>
    <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
  </configSections>


参考资料:http://entlib.codeplex.com/discussions/263361


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值