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