Hi, In the case of that route I got an error with or without slash, however the message changes a little bit.
URL (with slash): http://127.0.0.1/profile/list/ Castle.MonoRail.Framework.ControllerNotFoundException: Controller not found. Area: 'profile/list' Controller Name: 'profile' URL (without slash): http://127.0.0.1/profile/list Castle.MonoRail.Framework.ControllerNotFoundException: Controller not found. Area: 'profile' Controller Name: 'profile' the route for that path is: rules.Add(new PatternRoute("profilelist", "/profile/list/").DefaultForArea().IsEmpty. DefaultForController().Is("profile").DefaultForAction().Is("list")); I have another page that behaves ok without slash and throws the exception with the slash: URL: http://127.0.0.1/createaccount Result: Everything OK URL : http://127.0.0.1/createaccount/ Castle.MonoRail.Framework.ControllerNotFoundException: Controller not found. Area: 'createaccount' Controller Name: 'createaccount' If I use the old fashion url's everything works fine. I also notice that the UrlHelper.For() is producing bad url's (site root instead of pretended url) for the routes that accept parameters, the others that doesn't need parameters are fine. Is there any logging that i can enable to try to figure out what is the problem on mono+linux ? Thanks. 2009/3/20 Ken Egozi <[email protected]>: > if you go to > > http://127.0.0.1/profile/list/ (note the trailing slash) > does the routing rule catch the request? > > > On Fri, Mar 20, 2009 at 12:29 AM, Ricardo Lopes <[email protected]> wrote: >> >> Hi, >> >> I am doing some tests on mono+linux and everything works fine for my >> application (using MONO_IOMAP) except for the new routing module. >> >> In the routing rules i define the area as empty but the monorail >> handler seems to be ignoring it. >> >> In my routes i have this: >> >> rules.Add(new PatternRoute("profilelist", >> >> "/profile/list/").DefaultForArea().IsEmpty.DefaultForController().Is("profile").DefaultForAction().Is("list")); >> >> >> When I try the url for that route i get a ControllerNotFoundException. >> >> http://127.0.0.1/profile/list >> >> Controller not found. Area: 'profile' Controller Name: 'profile' >> >> Description: HTTP 500. Error processing request. >> >> Stack Trace: >> >> Castle.MonoRail.Framework.ControllerNotFoundException: Controller not >> found. Area: 'profile' Controller Name: 'profile' >> at >> Castle.MonoRail.Framework.MonoRailHttpHandlerFactory+NotFoundHandler.ProcessRequest >> (System.Web.HttpContext context) [0x00000] >> at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () >> [0x00000] >> at System.Web.HttpApplication.Tick () [0x00000] >> >> The same code works fine on windows + cassini. >> >> Any ideas? >> Thanks. >> >> > > > > -- > Ken Egozi. > http://www.kenegozi.com/blog > http://www.delver.com > http://www.musicglue.com > http://www.castleproject.org > http://www.gotfriends.co.il > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" 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-devel?hl=en -~----------~----~----~----~------~----~------~--~---
