2015-02-05 84 views
0

我在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')在Visual Studio托管的IIS身份验证中启用'基本'

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

任何指针如何解决这将不胜感激!

+0

您是使用IIS还是IIS express? – 2015-02-05 22:56:40

+0

我正在使用IIS Express – Scott 2015-02-06 19:50:21

回答

0

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