Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/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 (';IntegratedWindowsAuthentication';)不允许在绑定';WebHttpBinding';(';匿名';)_Wcf - Fatal编程技术网

Wcf (';IntegratedWindowsAuthentication';)不允许在绑定';WebHttpBinding';(';匿名';)

Wcf (';IntegratedWindowsAuthentication';)不允许在绑定';WebHttpBinding';(';匿名';),wcf,Wcf,我会一步一步地阅读这篇()文章,但我有以下解释: 主机上配置的身份验证方案(“IntegratedWindowsAuthentication”)不允许在绑定“WebHttpBinding”(“Anonymous”)上配置的身份验证方案。请确保SecurityMode设置为Transport或TransportCredentialOnly。此外,通过IIS管理工具,通过元素的应用程序配置文件中的ServiceHost.authentication.AuthenticationSchemes属性,通

我会一步一步地阅读这篇()文章,但我有以下解释:

主机上配置的身份验证方案(“IntegratedWindowsAuthentication”)不允许在绑定“WebHttpBinding”(“Anonymous”)上配置的身份验证方案。请确保SecurityMode设置为Transport或TransportCredentialOnly。此外,通过IIS管理工具,通过元素的应用程序配置文件中的ServiceHost.authentication.AuthenticationSchemes属性,通过更新绑定上的ClientCredentialType属性,更改此应用程序的身份验证方案,可以解决此问题,或者通过调整HttpTransportBindingElement上的AuthenticationScheme属性


今天下午,我使用Visual Studio 2013社区版在我的开发箱中遇到了这个问题

我的解决方案是单击项目名称,然后将属性>开发服务器>匿名身份验证更改为“启用”

以下是我的web.config文件的副本:

<system.serviceModel>
    <behaviors>
      <endpointBehaviors>
        <behavior name="RiddenGear.AJAX.GuestServicesAspNetAjaxBehavior">
          <enableWebScript/>
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
    <services>
      <service name="RiddenGear.AJAX.GuestServices">
        <endpoint address="" behaviorConfiguration="RiddenGear.AJAX.GuestServicesAspNetAjaxBehavior" binding="webHttpBinding" contract="RiddenGear.AJAX.GuestServices"/>
      </service>
    </services>
  </system.serviceModel>

作为侧栏,请注意这是我的开发配置。我们为live运行另一个配置,强制通过https进行连接。一旦在dev中运行起来,您可能还需要升级配置以处理这些连接