首页 新闻 会员 周边

WCF 采用wsDualHttpBinding,发布到服务器后,客户端连接服务报错超时,向高手求救!~

0
悬赏园豆:10 [已关闭问题] 关闭于 2015-07-07 14:47

WCF 采用wsDualHttpBinding,服务端配置代码如下:

  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="serviceMetadataBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>

<wsDualHttpBinding>
<binding name="wsDualHttpBinding_SessionService">
<security mode="None">
<message clientCredentialType="None" negotiateServiceCredential="false"/>
</security>
</binding>
</wsDualHttpBinding>

    </bindings>
    <services>
      <service name="Zwj.TEMS.Service.SessionManagementService" behaviorConfiguration="serviceMetadataBehavior">
        <endpoint address="" binding="wsDualHttpBinding" contract="Zwj.TEMS.Service.Contract.ISessionManagement" bindingConfiguration="wsDualHttpBinding_ISessionManagement" ></endpoint>
        <host>
          <baseAddresses>
            <add baseAddress="http://192.168.1.210:10800/SessionService"></add>
          </baseAddresses>
        </host>
      </service>

当在客户端连接时,报如下错误:

打开操作没有在分配的超时 00:00:59.9969998 内完成。分配给此操作的时间可能已经是更长超时的一部分。

梦在旅途的主页 梦在旅途 | 初学一级 | 园豆:10
提问于:2015-06-26 15:17
< >
分享
所有回答(2)
0

竟然还有用wcf 的傻子

傲慢与偏剑 | 园豆:381 (菜鸟二级) | 2015-06-26 16:56

不用WCF,那用什么,还请指教!

支持(2) 反对(0) 梦在旅途 | 园豆:10 (初学一级) | 2015-06-26 16:56

@梦在旅途:  直接 http get, post

支持(0) 反对(0) 傲慢与偏剑 | 园豆:381 (菜鸟二级) | 2015-06-29 09:30

WCF支持回调调用客户端,APi则轻量,简单,简易部署,各有所长,不知道答案就少bb

支持(0) 反对(0) BruceNeter | 园豆:200 (初学一级) | 2019-09-30 10:04
0

是设置超时时间了吗,去掉超时时间试试呢

liujf | 园豆:206 (菜鸟二级) | 2015-06-26 17:01
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册