var client = new CommonClient()
XElement exceptionDates = XElement
.Parse(client.ExceptionDatesUpdateControl("status").OuterXml);
调用时:
client.ExceptionDatesUpdateControl("status")
抛出以下错误:
SecurityNegotiationException:对 SSPI 的调用失败
原因是什么?
附加信息:
网络配置:
<system.serviceModel>
<bindings>
<netNamedPipeBinding>
<binding name="NetNamedPipeBinding_ICommon" />
</netNamedPipeBinding>
</bindings>
<client>
<endpoint address="net.pipe://localhost/service/common" binding="netNamedPipeBinding" bindingConfiguration="NetNamedPipeBinding_ICommon" contract="Service.Common.ICommon" name="NetNamedPipeBinding_ICommon">
</endpoint>
</client>
应用程序配置:
<services>
<service name="PROJ.Service.CommonService" behaviorConfiguration="CommonServiceBehavior">
<host>
<baseAddresses>
<add baseAddress="net.pipe://localhost/service/common"/>
</baseAddresses>
</host>
<endpoint
address="net.pipe://localhost/service/common"
binding="netNamedPipeBinding"
bindingConfiguration="pipeCommonServiceBinding"
contract="PROJ.Service.ICommon"
/>