Email Trace Listener Error

Topics: Logging Application Block
Oct 2, 2007 at 10: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="name@domainname.com" FromAddress="name@domainname.com"
SubjectLineStarter="Log:" SubjectLineEnder="" SmtpServer="mail.domainname.com"
SmtpPort="25" Formatter="Text Formatter" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FlatFileTraceListener,
Microsoft.Practices.EnterpriseLibrary.Logging"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FlatFileTraceListenerData,
Microsoft.Practices.EnterpriseLibrary.Logging"
traceOutputOptions="None"
/>

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

Thanks

Oct 3, 2007 at 1:13 PM
Hi,

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?

Fernando