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

Topics: Logging Application Block
Jul 11, 2012 at 5:13 PM
Edited Jul 11, 2012 at 6:01 PM

The logging is working if I call the logging from the .NET Windows application.

Now I've created the web-service and calling the logging from this web-service.

Config files in the Windows app and in the Web-service is identical. Referenced EL dll-s are the same.

But I'm getting the error: "The configuration section for Logging cannot be found in the configuration source".

I'm struggling with it several hours without success. Please, help. 

ADD: I'm starting the web-service from the WAS (without IIS) and the EL Logging works fine.

Jul 12, 2012 at 6:26 AM

When you host inside of IIS the configuration should reside in web.config.  Ensure that the configuration information is in the web.config (typically located in the root directory of the web service).

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com 

Jul 12, 2012 at 6:30 PM

Hi,

@radylevy: thank you for help!

Of course I've included the config EL info to Web.config.

I've discovered the issue.

The “Enable 32-Bit Applications” parameter of the application pool, where the Logging service is hosted, should be set up as “True”. 

The error text was unhelpful in this situation.