Wcf 在httpTransport中找不到authenticationScheme
我正在尝试对一项服务使用Windows身份验证,并且读过几篇文章,只是说我需要添加Wcf 在httpTransport中找不到authenticationScheme,wcf,silverlight,authentication,service,Wcf,Silverlight,Authentication,Service,我正在尝试对一项服务使用Windows身份验证,并且读过几篇文章,只是说我需要添加 httpTransport = authenticationScheme="Negotiate" 但是,我刚刚收到消息“authenticationscheme属性未声明” 有谁能解释一下我是如何发现这一点的,或者是否有其他方法可以为自定义服务提供Windows身份验证 <customBinding> <binding name="CustomBinding_AFDis
httpTransport = authenticationScheme="Negotiate"
但是,我刚刚收到消息“authenticationscheme属性未声明”
有谁能解释一下我是如何发现这一点的,或者是否有其他方法可以为自定义服务提供Windows身份验证
<customBinding>
<binding name="CustomBinding_AFDiscoveryService">
<binaryMessageEncoding />
<httpTransport authenticationScheme="Negotiate" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
</binding>
</customBinding>
非常感谢
克里斯那应该很好用。你从哪里得到这个消息
<system.serviceModel>
<bindings>
<customBinding>
<binding name="CustomBinding_AFDiscoveryService">
<binaryMessageEncoding />
<httpTransport authenticationScheme="Negotiate" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
</binding>
</customBinding>
</bindings>
<services>
<service name="Host.Service1">
<endpoint address="" binding="customBinding" bindingConfiguration="CustomBinding_AFDiscoveryService" contract="Host.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<host>
<baseAddresses>
<add baseAddress="http://localhost:8732/Design_Time_Addresses/Host/Service1/" />
</baseAddresses>
</host>
</service>
</services>
</system.serviceModel>