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

Topics: Logging Application Block
May 15, 2007 at 12:02 PM
Edited May 15, 2007 at 12:30 PM
I have created wrapper class over logging application block which has a App.config file with all settings & I am refering to it from web application it gives following error "The configuration section for Logging cannot be found in the configuration source"
May 15, 2007 at 5:08 PM
App.config or Web.config?

By default, the Logging Block will use the SystemConfigurationSource which will be web.Config file. If you want to specify a different configuration file, there are several factory overloads that accept an IConfigurationSource ( e.g. FileConfigurationSource ).

Personally, I have been dumping all my EntLib Configuration Settings in a separate file because it is getting pretty big:

Enterprise Library External File Configuration Source for Application Block Settings

Regards,

Dave

____________________________

David Hayden
Microsoft MVP C#