Matt
Matt

Reputation: 26981

A C# app that references a C# dll which uses Enterprise Library is throwing an error

I have a C# app that references another C# dll which in turn uses Enterprise Library. Because my app has no config xml file for setting the Enterprise Library settings, it is throwing an error, specifically:

"The configuration section for Logging cannot be found in the configuration source."
"Microsoft.Practices.EnterpriseLibrary.Logging"

I would rather not add an XML config file to my app to just turn off Enterprise Library. Is there a code way to do so in my the source for my app?

EDIT:

I'm on EL 4.1

Upvotes: 0

Views: 432

Answers (1)

Oded
Oded

Reputation: 499132

I don't have details for the exact configuration you are looking for, but Enterprise Library 5 has a fluent configuration API you can use.

As far as I know, previous versions can only be configured via XML files.

Upvotes: 2

Related Questions