0
我有一個WCF服務與WSDualHttpBinding,該服務在本地正常工作,當我在IIS上託管它不起作用時,首先它要求憑據登錄沒有設置身份驗證綁定,但是我把他的安全模式設置爲none,現在當我從客戶端發出請求時,它只是等待等待並等待響應並超時。如何在互聯網上承載WCF雙工服務
任何建議或例子將不勝感激。
<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似乎是兩個不同的東西給你,你有沒有嘗試將它託管在你的PC *在IIS *中找到問題? – nvoigt 2013-03-24 11:36:18
發佈您的配置將有所幫助。 – christiandev 2013-03-24 11:44:20
@nvoigt是它可以在我們的開發服務器IIS上運行,但只要我在公司網絡外部署,我就面臨問題 – 2013-03-24 11:50:17