Yossi Dahan [BizTalk]


Monday, November 20, 2006

Logging application blog configuration error

We're using the logging application block as a basis to a tracing and logging service across our solution.

As always the application block is driven by configuration sections in config files.

Today I got an error similar to this one -

"The configuration for TraceListener named Trace Listener A is missing from configuration."

I've briefly checked the configuration file and didn't find a problem in my source or listener.

What I did find strange was that I did not used to so called Trace Listener A in the bit of code I was running but another trace listener.

A closer look at the config file (through the skilled eyes of Ben here) revealed the problem - another source had that listener configured but had a leading space in its name.

I did not expect the application block to check the validity of the entire config section, but assumed it only looked at the bits required for the current execution i.e. the trace source and corresponding trace listener, but that is not the case.

Labels: ,


Post a Comment

<< Home