How do i specify wcf behaviorExtension class type without the assembly version number?

老子叫甜甜 提交于 2019-11-29 15:39:39

Try this:

<behaviorExtensions>
    <add 
        name="clientCredentialsExtension"         
        type="Simon.Web.Giftcard.WCFSecurity.ClientCredentialsExtensionElement, Simon.Web.Giftcard"/>
</behaviorExtensions>

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 .

This annoying bug bit me before too. I eventually changed all mine to build up in code instead of in the config.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!