Email Trace Listener Error

Topics: Logging Application Block
Oct 2, 2007 at 9:58 PM
I added the Email Trace Listener useing the Enterprise Library Configuration tool. After doing so I receive this error:
"Unrecognized attribute 'ToAddress'. Note that attribute names are case-sensitive."

This is what I added to the Listener section:

<add name="Email Destination"
ToAddress="" FromAddress=""
SubjectLineStarter="Log:" SubjectLineEnder="" SmtpServer=""
SmtpPort="25" Formatter="Text Formatter" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FlatFileTraceListener,

Keep in mind I am new to the enterprise library, only been working with it for a couple of days....


Oct 3, 2007 at 12:13 PM

Which version of the enterprise library are you using?
You mention that you're using the config tool to add the element, but the types are not specified using the FQNs as they should when using the tool.

Can you describe the steps you're following when authoring the configuration?