2011-11-01 67 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文件系統中。我總是忘記後者。我會削減我的虛擬大腦。