2015-02-05 81 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。