I have a web app that uses a WCF service that utilizes a behaviorExtension like so:
This annoying bug bit me before too. I eventually changed all mine to build up in code instead of in the config.