我在遠程計算機上的iis上託管了一個wcf服務,並試圖從另一臺計算機訪問該服務。兩臺機器位於同一個域中。客戶端的app.config:打開操作未在指定時間內完成wcf wsdualhttpbinding
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_IReportReceiver" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Mtom" 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="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
</wsDualHttpBinding>
</bindings>
<client>
<endpoint address="http://nts0104:5950/ReportReceiver.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_IReportReceiver"
contract="ServiceReference1.IReportReceiver" name="WSDualHttpBinding_IReportReceiver">
<identity>
<userPrincipalName value="ReportServer\[email protected]" />
</identity>
</endpoint>
</client>
</system.serviceModel>
<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="Error"
propagateActivity="true">
<listeners>
<add name="traceListener"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData= "c:\log\Traces.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>
</configuration>
該服務在特定池和帳戶[email protected]下運行。 沒有線索的這種情況發生.surfed很多,沒有幫助.pls提供你的解決方案。 謝謝
我想使用wsdualhttpbinding。所以任何其他的解決方案請 – sow 2012-01-31 08:35:23
,因爲這兩臺機器都在同一個域中,我覺得這可能不是防火牆問題 – sow 2012-01-31 09:18:04
請記住,Windows有一個內置的防火牆,默認情況下會阻止傳入的連接。此外,在域網絡設置中也可能有防火牆。出於興趣,你爲什麼如此想使用wsDualHttpBinding?它比NetTcpBinding更慢,更不可靠 – 2012-01-31 09:21:16