【发布时间】:2015-08-04 10:04:11
【问题描述】:
我已经在 IIS 中配置了 wcf 服务。 我的 web.config 是
<services>
<service name="DNExpWCFService.Service1"
behaviorConfiguration="DNExpWCFServiceBehaviour">
<endpoint name="WSGetEmployee" address="/WSGetEmployee"
binding="wsHttpBinding" contract="DNExpWCFService.IService1">
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange"></endpoint>
</service>
</services>
现在,当我使用 http://localhost:8333/Service1.svc 添加服务引用时,它工作正常。但是对于 nettcpbinding 我无法添加服务引用。我尝试使用 net.tcp://localhost:8444/Service1.svc。但它也失败了。如何使用 nettcpbinding 添加服务引用?
【问题讨论】:
标签: c# asp.net wcf iis nettcpbinding