Error trying to configure RavenDB in IIS mode

After the steps of this tutorial , the first item, “Configuring with IIS 7.5,” after clicking “Modules” in inetmgr, the following error occurs:

Modules error

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 several attempts, I tried to change

..

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

to that..

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

results

When trying to access "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 
+4
source share
1 answer

Check your web.config server 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 partitions at the web server level (just select Server in the left pane) in the IIS management console, and then select "Delegation of functions":

alt text

As you see in the picture above, all functions are read / write. Currently, on my computer, the Modules function is read-only, so I need to change it to Read / Write - on the right side of the Configure Delegation of Functions window, just click Read / Write ...

+3
source

All Articles