Wcf 由于bindingConfiguration属性,ServiceActivationException
我希望能够同时使用http和https访问该服务 在地址为“secure”的端点上,如果我包含bindingConfiguration属性,我将获得ServiceActivationException 但是如果我删除bindingConfiguration=“webBindingSecure”,一切都会正常工作。bindingConfiguration有什么问题Wcf 由于bindingConfiguration属性,ServiceActivationException,wcf,exception,https,Wcf,Exception,Https,我希望能够同时使用http和https访问该服务 在地址为“secure”的端点上,如果我包含bindingConfiguration属性,我将获得ServiceActivationException 但是如果我删除bindingConfiguration=“webBindingSecure”,一切都会正常工作。bindingConfiguration有什么问题 <system.serviceModel> <services> <service name="Op
<system.serviceModel>
<services>
<service name="OperatorApp.Api" behaviorConfiguration="ServiceBehaviour">
<endpoint address="secure" binding="webHttpBinding" **bindingConfiguration="webBindingSecure"** contract="OperatorApp.IApi" behaviorConfiguration="ssl" />
<endpoint address="normal" binding="webHttpBinding" contract="OperatorApp.IApi" behaviorConfiguration="web" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehaviour">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" >
</serviceMetadata>
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp />
</behavior>
<behavior name="ssl">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<webHttpBinding>
<binding name="webBindingSecure">
<security mode="Transport">
</security>
</binding>
</webHttpBinding>
</bindings>
查看它,您似乎需要在使用security mode=“Transport”时设置
元素的子元素。我这样做了,但没有帮助。我能得到更多关于问题所在的信息吗?