Monorail in IIS 7.5 (windows 7)

31May09

So I made the leap the other day and installed RC for Windows 7 and it all seems pretty ok.

Of course i had to do the install all I need dance.

Making monorail work in this new version of IIS…well I just thought I d blog about it as it didn’t work “out of the box”.

One (obvious)  thing that you have to make sure you do is that you actually have asp.net and  the ISAPI module installed (its not by default).application.jpg

The Virtual Directory needs to be an Application, for this you have an option for SetAsApplication in IIS in the contextual menu for the Virtual Directory.

IIS 7 has classic and Integrated mode, a very basic difference between these two modes is that in classic mode Asp.net was integrated into IIS via the ISAPI Extension, with the integrated mode asp.net runs natively, to read more about it check here. That leaves me with the question of: Does that mean my app doesn’t actually need ISAPI at all (that i will answer later, tho probably not).

All that said and you have to add the following to the web.config in system.webserver -> handlers

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

(of course change the handler to suit your self)

I have to admit, dont find setting up servers entertaining at all.

Hope it helps you.

Cheers

Advertisements


2 Responses to “Monorail in IIS 7.5 (windows 7)”

  1. What about if you want to use extensionless url’s?

  2. I have tried with this, but some how it still come out with 404 error.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: