IIS7 installation error

0
I am trying to install IIS7 by following the Mendix manual. I have added the ManagedFusion line but this throws an error: This error occurs when there is a problem reading the configuration file for the Web server or Web application. I have also added a bin folder with the 2 files and added a rewriter.txt file to the web folder. What is wrong in my web.config? <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".mxf" mimeType="text/xml" /> </staticContent> <rewrite> <rules> <rule name="ReverseProxyInboundRule1" stopProcessing="true"> <match url="^(file|link/|xas/|ws/|ws-doc/)(.*)" /> <action type="Rewrite" url="http://localhost:8080/{R:1}{R:2}" /> <conditions> </conditions> </rule> </rules> </rewrite> <validation validateIntegratedModeConfiguration="false"/> <modules runAllManagedModulesForAllRequests="true"> <add name="RewriterModule" type="ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter"/> </modules> <handlers> <add name="RewriterProxyHandler" preCondition="integratedMode" verb="*" path="RewriterProxy.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </handlers> </system.webServer> <configSections> <section name="managedFusion.rewriter" type="ManagedFusion.Rewriter.Configuration.ManagedFusionRewriterSectionGroup"/> </configSections> <managedFusion.rewriter xmlns="http://managedfusion.com/xsd/managedFusion/rewriter"/> </configuration>
asked
1 answers
1

Could it be that the ConfigSections should be added to your web.config before the </system.webserver> part?

Here's an example that worked:

    <?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <configSections>
        <section name="managedFusion.rewriter" type="ManagedFusion.Rewriter.Configuration.ManagedFusionRewriterSectionGroup"/>
    </configSections>
    <managedFusion.rewriter xmlns="http://managedfusion.com/xsd/managedFusion/rewriter" />    
    <location path="xas">
        <system.webServer>
            <httpErrors errorMode="Detailed" />
        </system.webServer>
    </location>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
            <add name="RewriterModule" type="ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter"/>
        </modules>
    <handlers>
        <add name="RewriterProxyHandler" preCondition="integratedMode" verb="*" path="RewriterProxy.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    </handlers>
    <staticContent>
        <mimeMap fileExtension=".mxf" mimeType="text/xml" />
    </staticContent>
    </system.webServer>
</configuration>
answered