关注 the steps in this tutorial ,在inetmgr中点击“Modules”后“Setting up with IIS 7.5”的第一项,出现如下错误:
Full image: http://i.stack.imgur.com/QCM4s.png
RavenDB 中的 Web.config
<configuration>
<appSettings>
<add key="Raven/DataDir" value="~\Data"/>
<add key="Raven/AnonymousAccess" value="Get"/>
</appSettings>
<system.webServer>
<handlers>
<add name="All" path="*" verb="*" type="Raven.Web.ForwardToRavenRespondersFactory, Raven.Web"/>
</handlers>
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule" />
</modules>
</system.webServer>
<runtime>
<loadFromRemoteSources enabled="true"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Analyzers"/>
</assemblyBinding>
</runtime>
</configuration>
应用程序主机配置
http://pastebin.com/UJTJfB9f
尝试
几次尝试,我试图改变
这..
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
到这个..
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />
结果
尝试访问“在 inetmgr 模块中工作!”时
然而 RavenDB Studio 不工作。
下图:
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
最佳答案
检查您的服务器 web.config 并更改 overrideModeDefault
来自 Deny
至Allow
.
<configSections>
<sectionGroup name="system.webServer">
<section name="handlers" overrideModeDefault="Deny" />
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
您还可以在 IIS 管理控制台中管理 Web 服务器级别的部分(只需在左 Pane 中选择服务器),然后选择“功能委派”:
正如您在上图中看到的,所有功能都是读/写。目前在我的机器上,模块功能是只读的,所以我需要将其更改为读/写 - 在设置功能委派的右侧 Pane 中,只需单击读/写...
关于iis - 尝试在 IIS 模式下配置 RavenDB 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11074844/