Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/267.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在internet上承载WCF双工服务_C#_Wcf_Iis_Duplex - Fatal编程技术网

C# 如何在internet上承载WCF双工服务

C# 如何在internet上承载WCF双工服务,c#,wcf,iis,duplex,C#,Wcf,Iis,Duplex,我有一个带有WSDualHttpBinding的WCF服务,该服务在本地运行良好,当我在IIS上托管它时,它不工作,首先它要求提供登录凭据,而绑定上没有设置身份验证,但是,我现在将安全模式设置为“无”,当我从客户机发出请求时,它会一直等待响应并超时 任何建议或范例都将不胜感激 <system.serviceModel> <services> <service name ="NewEngine.Engine" behaviorConfigurati

我有一个带有WSDualHttpBinding的WCF服务,该服务在本地运行良好,当我在IIS上托管它时,它不工作,首先它要求提供登录凭据,而绑定上没有设置身份验证,但是,我现在将安全模式设置为“无”,当我从客户机发出请求时,它会一直等待响应并超时

任何建议或范例都将不胜感激

<system.serviceModel>
    <services>
      <service name ="NewEngine.Engine" behaviorConfiguration ="serviceBehaviourSoap" >
        <endpoint name ="duplexendpoint" address ="" binding ="wsDualHttpBinding" contract ="NewEngine.IEngine" bindingConfiguration="wsDualBinding"/>
        <endpoint name ="MetaDataTcpEndpoint" address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="serviceBehaviourSoap">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <wsDualHttpBinding>
        <binding name="wsDualBinding" closeTimeout="00:00:05" openTimeout="00:00:05" receiveTimeout="00:10:00" sendTimeout="00:00:05" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
              maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" />
          <security mode="None" >
            <message clientCredentialType="None"/>
          </security>
        </binding>
      </wsDualHttpBinding>
    </bindings>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>


我上周遇到了同样的问题。我删除了这一行它运行良好。您可以在“本地”尝试它,IIS对您来说似乎是两件不同的事情,您是否尝试过在IIS中的PC上托管它以发现问题?发布您的配置将有所帮助。@nvoigt是的,它在我们的开发服务器IIS上工作,但一旦我将其部署到公司网络之外,我就面临problem@christiandev我已经用配置更新了问题。