I am using routing with monorail and I am trying to get a HttpHandler
to work in the midst of it.  My problem is that the routing engine
keeps trying to match routes based on the handler path.

I am trying to create a handler with the path

/test.axd

but the routing module keeps kicking in and tries to match a
controller with name 'test' and action 'axd'.  If I debug the
RoutingModuleEx, it is rewriting the url to '/test/axd/'.

I don't think my routing rules should match this url.  Is this a bug
with Castle or am I missing something here?

I have the following route defined:

engine.Add(new PatternRoute("/[controller]/[action]/[id]")
    .Restrict("id").ValidInteger
    .DefaultForController().Is("home")
    .DefaultForAction().Is("index"));

and the following http handlers:

<httpHandlers>
  <add verb="*" path="*.spark" type="System.Web.HttpForbiddenHandler" /
>
  <add verb="*" path="test.axd" type="myTestHandler" />
  <add verb="*" path="*.*" type="System.Web.StaticFileHandler" />
  <add verb="*" path="*"
type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
Castle.MonoRail.Framework" />
</httpHandlers>
--~--~---------~--~----~------------~-------~--~----~
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