Question

Following the steps in this tutorial, the first item of "Setting up with IIS 7.5" after clicking on "Modules" in inetmgr, the following error occurs:

Modules error

Full image: http://i.stack.imgur.com/QCM4s.png

Web.config in RavenDB

<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>

applicationHost.config

http://pastebin.com/UJTJfB9f

Try

For a few attempts, I tried to change

this..

<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />

to this..

<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />

Results

When trying to access "in inetmgr Modules worked!"

However RavenDB Studio does not work. The following image:

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 
Was it helpful?

Solution

Check your server web.config and change overrideModeDefault from Deny to Allow.

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

You can also manage sections on web server level (just select the Server in the left pane) in your IIS management console and then select "Feature Delegation":

alt text

As you see in the picture above all the features are Read/Write. Currently on my machine the Modules feature is Read Only, so I'd need to change it to Read/Write - in the right hand pane in Set Feature Delegation just click on Read/Write...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top