【发布时间】:2011-06-28 14:01:02
【问题描述】:
我在我的类库中使用 MS Enterprise Library 4.1 版。在 app.config 文件中,我在配置文件中为“loggingConfiguration”和“exceptionHandling”插入了适当的条目。但是,它会导致崩溃,即“在配置源中找不到 Logging 的配置部分。”
configSections
<configSections>
<section name="loggingConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging,
Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<section name="exceptionHandling"
type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,
Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
【问题讨论】:
标签: logging enterprise-library app-config