Yes, the RoutingModuleEx module intercepts everything. Static files do work for me because of this line in RoutingModuleEx:
if (File.Exists(request.PhysicalPath)) { return; // Possibly requesting a static file, so we skip routing altogether } The problem is my HttpHandler does not map to any physical file causing the routing module to try and find a route match. So, it seems the real problem here is why this url: /test.axd matches with this route: /[controller]/[action]/[id] It is matching 'test' as the controller name and 'axd' as the action name. I wouldn't think this should be a match. Are the slashes and dots interchangeable within the route? On Nov 4, 12:51 pm, Jimmy Shimizu <[EMAIL PROTECTED]> wrote: > When matching everything with * to monorail-handler, everything will > be handled by monorail afaik, including the static-handler. > > Do your static-files work for you? > > On 4 nov 2008, at 18.22, Chadly wrote: > > > > > 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 castle-project-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---