在IIS中托管后,无法使用net.tcp绑定浏览服务

时间:2013-10-28 14:55:17

标签: c# wcf net.tcp

我已经使用net.tcp绑定在iis中托管我的WCF服务,当我浏览时我可以看到该服务,但是当我在我的应用程序中浏览时,我收到的错误如

无法找到与绑定NetTcpBinding的端点匹配scheme net.tcp的基址。注册的基地址方案是[http]。

任何人都可以帮我解决这个问题吗?

<service behaviorConfiguration="Servicebehavior" name="WCftestnettcp.Service1">
    <endpoint address="" binding="netTcpBinding" bindingConfiguration="NewBinding0"    name="tcpbind" contract="WCftestnettcp.IService1" />
    <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="" name="mextcp" contract="IMetadataExchange" />
    <host>
      <baseAddresses>
        <add baseAddress="net.tcp://XXXX-pc:8080/Service1.svc" />

      </baseAddresses>

0 个答案:

没有答案
相关问题