【发布时间】:2014-09-30 18:16:53
【问题描述】:
我有一个具有这种配置的 WCF 服务:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
它以前可以正常工作,但一定有什么改变了,因为当我现在尝试运行它时,我得到了这个错误:
主机上配置的认证方案 ('IntegratedWindowsAuthentication') 不允许那些在 绑定“BasicHttpBinding”(“匿名”)。
我已尝试删除 IIS Express 配置文件,希望它能够将自身重置为其默认配置(我假设其中包括匿名身份验证),但我仍然遇到同样的错误。
错误是否在其他地方,我需要显式重新配置 IIS Express,还是我完全遗漏了其他东西?
【问题讨论】:
标签: wcf authentication iis-express