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

标签 iis web-config iis-7.5 ravendb ravendb-studio

关注 the steps in this tutorial ,在inetmgr中点击“Modules”后“Setting up with IIS 7.5”的第一项,出现如下错误:

Modules error

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 不工作。
下图:

Error 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来自 DenyAllow .

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

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

alt text

正如您在上图中看到的,所有功能都是读/写。目前在我的机器上,模块功能是只读的,所以我需要将其更改为读/写 - 在设置功能委派的右侧 Pane 中,只需单击读/写...

关于iis - 尝试在 IIS 模式下配置 RavenDB 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11074844/

相关文章:

windows - 尝试授予 IIS 7.5 中特定应用程序池标识的权限 - "object cannot be found"

asp.net - 如何以编程方式将 SMTP 服务器详细信息存储(保存)回 web.config

IIS7 上的 PHP - 接收 "Object Moved"html 页面而不是实际重定向

c# - 无法添加类型为 'filter' 且唯一键属性 'name' 设置为 'ASP.Net_4.0_64bit' 的重复集合条目

c# - 调用 SSL 支付网关时出错 : "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel"

iis - 配置 Web Deploy IIS 用户权限

c# - Windows 服务 VS 网络进程

asp.net - 通过 web.config 禁用 HTTP 访问

c# - WCF 跟踪和消息日志记录不会在服务主机(服务器)端写入日志文件

asp.net-mvc - 让 ASP.MVC2/VS2010 应用程序在 IIS 7.5 中工作