I have a web app that uses a WCF service that utilizes a behaviorExtension like so:
If you are stuck with .NET 3.5 where the configuration bug is not fixed yet, the solution is to implement IServiceBehavior by your service. See this article, example 6-15 .
Try this:
<behaviorExtensions>
<add
name="clientCredentialsExtension"
type="Simon.Web.Giftcard.WCFSecurity.ClientCredentialsExtensionElement, Simon.Web.Giftcard"/>
</behaviorExtensions>
Apparently it's fixed in .Net 4.0 beta 2. Not much use to me, who is stuck with 3.5.
http://connect.microsoft.com/wcf/feedback/details/216431/wcf-fails-to-find-custom-behaviorextensionelement-if-type-attribute-doesnt-match-exactly
This annoying bug bit me before too. I eventually changed all mine to build up in code instead of in the config.