看一下http://msdn.microsoft.com/en-us/library/ms731303.aspx和http://msdn.microsoft.com/en-us/library/ms789007.aspx,给出了指定ServiceBehavior的示例,但是有没有办法在behaviorConfiguration中也指定endpointBehavior呢?就像这样
<service name="ServiceName1" behaviorConfiguration="ServiceBehavior1;EndpointBehavior1">
...
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior1">
...
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="EndpointBehavior1">
...
</behavior>
</endpointBehaviors>
</behaviors>
...发布于 2012-06-12 03:10:15
愚蠢的问题是,web.config的端点元素也有自己的behaviorConfiguration属性。
<endpoint
behaviorConfiguration="EndpointBehavior1" ...https://stackoverflow.com/questions/10985437
复制相似问题