Thanks , but I had included the relevant namespaces and did not have any problem compiling.
I did have a problem with the
public ConsoleTraceListener() : base()
line which I eliminated by removing the base constructor.
My initial guess was that it might be the :
[ConfigurationElementTypeAttribute(CustomTraceListenerData::typeid)] line .
I also tried :
but with no success.
I have even tried adding the custom trace listener to the app.config file by direclty editing it but it gives an error during execution. It fails to instantiate the logger.