启用'基本'在visual studio上托管IIS身份验证

时间:2015-02-05 22:55:16

标签: wcf iis basic-authentication

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

我已经进入控制面板,并且对于身份验证类型的IIS启用了基本功能,但这似乎并不是所需的。

任何有关如何解决此问题的指示都将非常感谢!

1 个答案:

答案 0 :(得分:0)

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

相关问题