WCF - 在 net.tcp://..../Querier.svc 上没有可以接受消息的端点侦听 [英] WCF - There was no endpoint listening at net.tcp://..../Querier.svc that could accept the message

查看:23
本文介绍了WCF - 在 net.tcp://..../Querier.svc 上没有可以接受消息的端点侦听的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WCF - 在 net.tcp://myserver:9000/SearchQueryService/Querier.svc 上没有侦听可以接受消息的端点.

WCF - There was no endpoint listening at net.tcp://myserver:9000/SearchQueryService/Querier.svc that could accept the message.

我在 IIS 应用程序上启用了 net.tcp 协议

I have the net.tcp protocol enabled on the IIS application

Windows 防火墙关闭

Windows firewall is off

整个 IIS 应用程序的 net.tcp 绑定设置为端口 9000.

The net.tcp binding is set to port 9000 for the entire IIS application.

我的 web.config 非常标准:

My web.config is very standard:

<system.serviceModel>
    <diagnostics>
      <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="false"
        logMessagesAtTransportLevel="true" />
    </diagnostics>
    <services>
      <service behaviorConfiguration="SearchQueryServiceBehavior" 
       name="Search.Querier.WCF.Querier">
        <endpoint address="mex" binding="mexHttpBinding" name="mexHttpEndpoint"
          contract="IMetadataExchange" />
        <endpoint binding="netTcpBinding" bindingConfiguration="" 
           name="netTcpEndpoint"
          contract="Search.Querier.WCF.IQuerier" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="SearchQueryServiceBehavior">

          <serviceMetadata httpGetEnabled="true"/>

          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

而且这种设置在一台服务器上有效,但在另一台服务器上无效...可能是什么问题呢?

And this very setup works on one server but not the other... What could be the problem?

两台服务器,工作的和非工作的都在运行 IIS7.唯一的区别是工作盒是Vista64 Sp2,非工作盒是W2k864.

Both servers, the working and non-working one are running IIS7. The only difference is the working box is Vista64 Sp2 and non working one is W2k864.

推荐答案

我认为您在站点高级设置的启用协议"列表中缺少 net.tcp.

I think that you are missing the net.tcp in the "Enable Protocols" list in the advanced settings of the site.

这篇关于WCF - 在 net.tcp://..../Querier.svc 上没有可以接受消息的端点侦听的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆