Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wcf 在httpTransport中找不到authenticationScheme_Wcf_Silverlight_Authentication_Service - Fatal编程技术网

Wcf 在httpTransport中找不到authenticationScheme

Wcf 在httpTransport中找不到authenticationScheme,wcf,silverlight,authentication,service,Wcf,Silverlight,Authentication,Service,我正在尝试对一项服务使用Windows身份验证,并且读过几篇文章,只是说我需要添加 httpTransport = authenticationScheme="Negotiate" 但是,我刚刚收到消息“authenticationscheme属性未声明” 有谁能解释一下我是如何发现这一点的,或者是否有其他方法可以为自定义服务提供Windows身份验证 <customBinding> <binding name="CustomBinding_AFDis

我正在尝试对一项服务使用Windows身份验证,并且读过几篇文章,只是说我需要添加

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>