4

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: https://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 
Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575
ridermansb
  • 10,779
  • 24
  • 115
  • 226

1 Answers1

3

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

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
  • What a crazy thing: today I just searched Google for this very problem and got here at an answer I provided 1 month ago. I'm helping other and MYSELF for future problems... I believe in God's ways and this proves my belief. :) See: when you help others you're doing good to yourself because we're 1 in Christ Jesus. – Leniel Maccaferri Jul 20 '12 at 14:59
  • 1
    :) Very nice story! This answer saved my day also. +1! – Cristian Lupascu Oct 03 '13 at 08:38