Of course it should be <handles> and not <modules>,

    <system.webServer>
            <handles>
                <add name="MonoRail" path="*.rails" verb="*"
type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
Castle.MonoRail.Framework" preCondition="integratedMode" />
           </handles>
    </system.webServer>

just for clarification.

Jimmy Shimizu wrote:
> If you're using integrated mode on the application pool (not classic)
> this is the bare minimum I think you need (using NVelocity template
> engine, and .rails extension):
>
> <configuration>
>     <configSections>
>         <section name="monorail"
> type="Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler,
> Castle.MonoRail.Framework" />
>     </configSections>
>    
>     <monorail smtpHost="localhost">
>         <viewEngines viewPathRoot="Views">
>             <add
> type="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine,
> Castle.MonoRail.Framework.Views.NVelocity" />
>         </viewEngines>
>     </monorail>
>    
>     <system.webServer>
>             <modules>
>                 <add name="MonoRail" path="*.rails" verb="*"
> type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
> Castle.MonoRail.Framework" preCondition="integratedMode" />
>            </modules>
>     </system.webServer>
> </configuration>
> hugob wrote:
>   
>> I have struggled for one day now trying to get a Monorail app working
>> with IIS7. Can someone please post a complete, working web.config file
>> (not just the system.webServer part) , so I can use that as a starting
>> point?
>>
>> Thanks
>>
>> Hugo
>>
>> >>
>>   
>>     

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to