服务器上的WCF wsDualHttpBinding超时错误,但不是localhost

时间:2014-06-06 13:12:59

标签: .net wcf timeout duplex wsdualhttpbinding

我正在编写需要双工通道的WCF服务。我对我的localhost运行它没有问题,但是当部署到服务器时,它会驻留进行测试,我收到一个超时错误(他发送到http://www.foo.com/myService.svc的请求操作在配置的超时内没有收到回复(00) :04:59.1049488))。我将超时时间提高了30分钟,仍然在服务器上出现错误。这让我相信这不是操作超时,而是某种通信错误。

我的服务配置:

<system.serviceModel>
    <bindings>
        <wsDualHttpBinding>
            <binding name="wsDualHttpBinding">
            </binding>
        </wsDualHttpBinding>
    </bindings>
    <services>
        <service name="myService.myService" behaviorConfiguration="wsDualHttpBinding">
            <endpoint address=""
                      contract="myService.IMyService"
                      binding="wsDualHttpBinding"
                      bindingConfiguration="wsDualHttpBinding" />
        </service>
    </services>
    <behaviors>
        <serviceBehaviors>
            <behavior name="wsDualHttpBinding">
                <serviceMetadata httpsGetEnabled="true" httpGetEnabled="true"/>
                <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
        </serviceBehaviors>
    </behaviors>
    <protocolMapping>
        <add binding="wsDualHttpBinding" scheme="https" bindingConfiguration="wsDualHttpBinding" />
    </protocolMapping>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>

我的客户端配置:

<system.serviceModel>
    <bindings>
        <wsDualHttpBinding>
            <binding name="WSDualHttpBinding_IBulkFiling" openTimeout="00:05:00" sendTimeout="00:05:00" />
        </wsDualHttpBinding>
    </bindings>
    <client>
        <endpoint address="http://www.foo.com/myService.svc" binding="wsDualHttpBinding"
            bindingConfiguration="WSDualHttpBinding_IMyService" contract="myService.myService"
            name="WSDualHttpBinding_IMyService">
            <identity>
                <userPrincipalName value="host\Server02" />
            </identity>
        </endpoint>
    </client>
</system.serviceModel>

我一直试图破解这个问题已经好几天没有取得任何进展。任何帮助将不胜感激。

0 个答案:

没有答案