【发布时间】:2011-10-23 15:02:13
【问题描述】:
我有一个使用 wsDualHttpBinding 的 wcf 服务,当我尝试使用同一域中的另一台电脑连接到它时出现该错误。
这是我的客户端配置:
<binding name="WSDualHttpBinding_IRouter" 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="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
如果我将安全性更改为:
<binding name="WSDualHttpBinding_IRouter" 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 negotiateServiceCredential="false" clientCredentialType="None" />
</security>
</binding>
我得到超时异常。
任何人都有解决方案吗?请注意,我不使用 wsDualHttpBinding(基本或 wsHttpBinding)。
【问题讨论】:
-
服务和客户端是否都在域帐户下运行?
-
是的,但我不想在生产中利用这一点
-
我修好了,我应该删除问题还是直接回答?
-
回答它 - 它可以在未来帮助其他人。
标签: c# wcf wsdualhttpbinding