尝试在IIS模式下配置RavenDB时出错

尝试在IIS模式下配置RavenDB时出错,iis,web-config,iis-7.5,ravendb,ravendb-studio,Iis,Web Config,Iis 7.5,Ravendb,Ravendb Studio,下面,单击inetmgr中的“Modules”后,单击“Modules”后,第一个项目“使用IIS 7.5设置”,出现以下错误: 完整图像: RavenDB中的Web.config 检查服务器web.config并将overridedemodedefault从Deny更改为Allow <configSections> <sectionGroup name="system.webServer"> <section name="handlers" over

下面,单击inetmgr中的“Modules”后,单击“Modules”后,第一个项目“使用IIS 7.5设置”,出现以下错误:

完整图像:

RavenDB中的Web.config
检查服务器web.config并将
overridedemodedefault
Deny
更改为
Allow

<configSections>
  <sectionGroup name="system.webServer">
    <section name="handlers" overrideModeDefault="Deny" /> 
    <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />

您还可以在IIS管理控制台中管理web服务器级别的节(只需在左窗格中选择服务器),然后选择“功能委派”:


如上图所示,所有功能均为读/写功能。目前在我的机器上,模块功能是只读的,因此我需要将其更改为读/写-在“设置功能委派”的右侧窗格中,只需单击读/写…

检查该应用程序的应用程序池,看看它是否处于.NET 4.0模式(只需打开其属性对话框)。我假设它是在2.0中,因此出现了错误。不!设置为4.0!看见多么疯狂的事情:今天我在谷歌上搜索这个问题,得到了一个月前我提供的答案。我在帮助别人和我自己解决未来的问题。。。我相信上帝的方式,这证明了我的信仰看:当你帮助别人的时候,你是在对自己做好事,因为我们在基督耶稣里是第一位的。:)非常好的故事!这个答案也救了我一天+1.
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />
Config Error
   This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".  

Config File
   \\?\C:\Users\Riderman\RavenDB-Build-960\Web\web.config 
<configSections>
  <sectionGroup name="system.webServer">
    <section name="handlers" overrideModeDefault="Deny" /> 
    <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />