该服务已部署到服务器。我可以用浏览器点击服务器的服务页面,看到生成客户端的说明。
Unable to automatically step into the server.
Connecting to the server machine 'shuttle' failed.
Please install the Visual Studio 2008 Remote Debugger on the
server to enable this functionality.
远程调试器已安装并正在运行,或当然。
Client is unable to finish the security negotiation within the
configured timeout (00:00:00). The current negotiation leg is 1 (00:00:00).
当我将安全模式设置为none并增加超时时间时,错误变为
The open operation did not complete within the allotted timeout of 00:02:00.
The time allotted to this operation may have been a portion of a
longer timeout.
我没有运行任何防火墙,我在Ethereal的服务器上看到了请求。我正在查看TCP流,我无法说出协商失败的原因。事件日志中没有相关内容。我快没力气了,希望你能给我一个提示。
客户端app.config包含svcutil生成的部分:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_SportRadarDCS"
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="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>
</wsDualHttpBinding>
</bindings>
<client>
<endpoint
address="...."
binding="wsDualHttpBinding"
bindingConfiguration="WSDualHttpBinding_SportRadarDCS"
contract="SportRadarDCS"
name="WSDualHttpBinding_SportRadarDCS">
<identity>
<userPrincipalName value=".. my domain user ..." />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>