Invalid TraceListenerData type in configuration

Topics: Logging Application Block
Aug 26, 2010 at 9:30 AM


When i am trying to use Logging Application Block in Enterprise Library 5.0 i'm getting an error

Invalid TraceListenerData type in configuration 'listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"'.

After some googling, I found that this error can be solved only by using .Net Framework 4.0

But, i cannot install .net 4.0 because of the firm's policy, and i have to use .net 3.5.

In Enterprise Library book in section "Target Audience and System Requirements" it is written that target framework can be Microsoft .NET Framework 3.5 with Service Pack 1 or Microsoft .NET Framework 4.0.  Is it wrong?


Aug 27, 2010 at 2:11 AM

You are not required to use .NET 4.0  In fact, the current release of entlib (5.0) targets .NET 3.5.   Did you add reference to the Microsoft.Practices.EnterpriseLibrary.Logging.Database assembly?


Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.