【问题标题】:Enable 'Basic' on visual studio hosted IIS authentication在 Visual Studio 托管的 IIS 身份验证上启用“基本”
【发布时间】:2015-02-07 03:55:12
【问题描述】:

我在 Windows 8 上的 Visual Studio 2013 中创建了一个“WCF 服务应用程序”,然后将 .svc 文件设置为默认页面。当我按 F5 进行调试时,WCF 测试客户端告诉我 The authentication schemes configured on the host ('Anonymous') do not allow those configured on the binding 'BasicHttpBinding' ('Basic')

我已进入控制面板并在身份验证类型上启用了 IIS 的 Basic,但这似乎不是必需的。

任何有关如何解决此问题的指示将不胜感激!

【问题讨论】:

  • 您使用的是 IIS 还是 IIS express?
  • 我正在使用 IIS express

标签: wcf iis basic-authentication


【解决方案1】:

使用 VS 运行显然使用 IIS express。要启用 Basic 身份验证,只需编辑文件 %USERPROFILE%\Documents\IISExpress\config\applicationhost.config 并将 basicAuthentication enabled 设置为 true。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-18
    相关资源
    最近更新 更多