安装WindowsAuthentication中断authentication/ web.config?

我有一个干净的Windows 2008 R2框(在虚拟机上),并安装了默认选项的IIS 7.5。 然后我复制了一个网站(从Windows 7,IIS 7),并稍微调整后,网站工作正常。

该网站目前正在使用和使用匿名身份validation。

我已经回到Windows组件/服务器pipe理器,angular色 – >安全性,并打勾并安装Windows身份validation。

当我检查我的服务器在IIS(高于站点的顶层) – >身份validation,我看到
匿名身份validation(启用)
ASP.NET模拟(禁用)
表单身份validation(disbaled)
Windows身份validation(启用)

当我检查我的默认网站 – >身份validation,我看到如上,但“检索状态”和错误对话框说

There was an error while performing this operation. Details: Filename c:\inetpub\wwwroot\screwturnwiki\web.config Line number: 96 Error: This configuration section cannot be used in this path. This happens when the section is being locked at the parent level. Locking is either by default (overriderModeDefault="Deny"), or set explicity by a location tag with overrideMode="Deny" or the legacy allowOverride="False". 

我试图手动编辑web.config没有成功。 ( 如何在IIS7configuration中使用locking )

联合安装Windows身份validation可以让我的网站和匿名身份validation一起工作,并允许我启用/禁用这三个选项。

仅供参考。 我使用的是Active Directory插件的ScrewTurnWiki。它在Windows 7 IIS 7本地运行良好(已经几个月)

Web.Config中

 <system.webServer> (edit) <handlers> ( deleted removes/adds ) </handlers> <security> <authentication> 96: <windowsAuthentication enabled="true" useKernelMode="true"> <extendedProtection tokenChecking="Allow" /> <providers> <clear /> <add value="NTLM" /> <add value="Negotiate" /> </providers> </windowsAuthentication> </authentication> </security> 

Grr … RTFM在我的部分。

答案是编辑

  %windir%\system32\inetsrv\config\applicationHost.config 

从安全部分文件中移除overrideModeDefault="Deny"