【问题标题】:('IntegratedWindowsAuthentication') do not allow those configured on the binding 'WebHttpBinding' ('Anonymous')('IntegratedWindowsAuthentication') 不允许那些在绑定'WebHttpBinding' ('Anonymous') 上配置的
【发布时间】:2015-06-21 02:17:06
【问题描述】:

我一步一步地按照这篇 (https://bishwaranjan.wordpress.com/2014/09/05/how-to-upload-files-using-kendo-file-upload-and-wcf-service/) 文章,但我有以下 exption:

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

【问题讨论】:

    标签: wcf


    【解决方案1】:

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

    我的解决方案是单击项目名称,然后将 Properties > Development Server > Anonymous Authentication 更改为“Enabled”。

    这也是我的 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>
    

    作为侧边栏,请注意这是我的开发配置。我们确实运行了另一个实时配置,强制通过 https 进行连接。一旦你在开发中取得进展,你可能还想升级你的配置来处理这些连接。

    【讨论】:

      猜你喜欢
      • 2014-10-26
      • 2016-02-21
      • 2013-12-09
      • 1970-01-01
      • 1970-01-01
      • 2011-09-01
      • 2018-05-30
      • 2010-11-12
      • 2012-09-19
      相关资源
      最近更新 更多