2011-11-01 66 views
2

我加入了以下配置部分,以我的web.config文件麻烦与“匿名”和“协商,NTLM”身份验证在IIS7.5

<security> 
    <authentication> 
    <anonymousAuthentication enabled="true" /> 
    <windowsAuthentication enabled="true" /> 
    </authentication> 
</security> 

但是,当我拨打*。 ASMX Web服务,我还得到了以下错误:

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.

我现在用的是IIS7.5 ASP.NET集成模式。

任何线索?我刚发现IIS Authenticatino非常不稳定。

谢谢!

回答

2

事实证明,除了在IIS中启用匿名身份验证之外,我们还需要授予对目标文件夹的NTFS权限以进行匿名身份验证身份验证。

Windows身份验证发生在IIS和NTFS文件系统中。我总是忘记后者。我会削减我的虚拟大脑。