WCF WsDualHttpBinding超时异常 [英] WCF WsDualHttpBinding Timed out Exception

查看:55
本文介绍了WCF WsDualHttpBinding超时异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我有WCF服务(在Windows服务中托管)并尝试从其他系统连接

我在下面错误

打开的操作未在指定的00:01:00超时内完成。分配给此操作的时间可能是较长超时的一部分。



我尝试了几种方式

1] Made Fire在服务器和客户端都关闭

2]安全无

3]由于某种原因,我必须使用WsDualHttpBinding

4]使用相同的网络(不是互联网)





但在同一台机器上它可以工作!





我的客户端配置

Hello All,

I have WCF Service (Hosted in Windows service ) and trying connect from other system
I am getting below error
The open operation did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.

I have tried several ways as
1]Made Fire wall off in both server and client
2]Security None
3]For some reason I have to use WsDualHttpBinding
4]Using same network (not over internet)


But In same machine It works !


My client config

<system.serviceModel>
    <bindings>
      <wsDualHttpBinding>
        <binding name="ConfigService" closeTimeout="00:01:00"

            clientBaseAddress="http://Localhost:8723/ConfigUI"

            openTimeout="00:01:00" receiveTimeout="00:15:00" sendTimeout="00:01:00"

            bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"

            maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"

            messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"

              maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" />
      <security mode="None">
        <message clientCredentialType="None" negotiateServiceCredential="false" />
      </security>
        </binding>
      </wsDualHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://Ip-address:8725/ConfigService/Service"

          binding="wsDualHttpBinding" bindingConfiguration="ConfigService"

          contract="IConfigServiceLib" name="MyService">
 
 
      </endpoint>
    </client>
  </system.serviceModel>







service.config






service.config

<system.serviceModel>
    <diagnostics>
      <messageLogging logEntireMessage="true" logMalformedMessages="true"

        logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" />
    </diagnostics>
    <behaviors>
      <serviceBehaviors>
        <behavior name="WsDualHttpBinding">
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false"/>
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings >
      <wsDualHttpBinding>
        <binding name="higherMessageSize_WS" closeTimeout="10:01:00" clientBaseAddress="http://Localhost:8723/ConfigUI"

        openTimeout="10:01:00" receiveTimeout="10:10:00" sendTimeout="10:01:00"

        bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"

        maxBufferPoolSize="5242880000" maxReceivedMessageSize="655360000" messageEncoding="Text" 

        textEncoding="utf-8" useDefaultWebProxy="true">
		<security mode="None">
        <message clientCredentialType="None" negotiateServiceCredential="false" />
      </security>
		</binding>
      </wsDualHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="WsDualHttpBinding" name="ServiceCon">
        <clear />
        <endpoint address="ConfiguratorService"

          binding="wsDualHttpBinding" bindingConfiguration="higherMessageSize_WS" name="MyService"

          contract="IContract" />
        <endpoint binding="mexHttpBinding" bindingConfiguration="" name="mex"

          contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8725/ConfigService" />
          </baseAddresses>
        </host>
      </service>
    </services>
  </system.serviceModel>





请帮助我



Please help Me

推荐答案

打开浏览器并尝试浏览此URL:

http:// localhost:8725 / ConfigService

http:// Localhost:8723 / ConfigUI



也许您的问题在于绑定配置并在此处发布您的结果
open your browser and try navigate this URL:
http://localhost:8725/ConfigService
http://Localhost:8723/ConfigUI

maybe your problem is on the binding configuration and post your result here please


也许您应该看看这个 [ ^ ]。



快乐编码。
Maybe you should look at this[^].

Happy coding.


这篇关于WCF WsDualHttpBinding超时异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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