更新时间:2021-08-14 23:16:30
您的服务配置似乎有问题-您为服务端点指定netHttpBinding
,没有bindingConfiguration,并且为netTcpBinding
定义了配置(但显然未使用).配置的相关服务部分在这里:
Your service config appears to have an issue - you specify netHttpBinding
for the service endpoint with no bindingConfiguration, and you have a configuration defined for netTcpBinding
(but apparently not used). Relevant service portion of your config here:
<endpoint address="Default.svc"
binding="netHttpBinding"
name="TransportLayerServiceEndpoint"
contract="DemoNamespace.IPipeService" />
请注意,没有设置bindingConfiguration
值.我建议将客户端中定义的绑定配置添加到您的服务配置中,然后更新服务端点以使用该绑定:
Note that there is no bindingConfiguration
value set. I would suggest adding the binding configuration defined in the client to your service config, and then updating the service endpoint to use that binding:
<endpoint address="Default.svc"
binding="netHttpBinding"
bindingConfiguration="TransportLayerServiceEndpoint"
name="TransportLayerServiceEndpoint"
contract="DemoNamespace.IPipeService" />
当前您的服务使用的是netHttpBinding
的默认值,这可能是您仍然收到错误的原因.
Currently your service is using the default values for netHttpBinding
, which is probably the reason you're still getting the error.