I was able to make the routing work without problem on mono, i removed the "~" from the value returned by the CreateMonoRailPath(RouteMatch) method on the RoutingModuleEx and routes seems to be working without any problems (i have to test it a little bit more to be sure).
2009/3/27 Ricardo Lopes <[email protected]>: > I am trying to identify the source of the bug. > > The RoutingModuleEx is correctly rewriting the path, but when the > MonoRailHttpHandlerFactory is called it receives a context with > incorrect url, pathinfo, filepath, etc.. > > What happends between the RewritePath of the > RoutingModuleEx.OnBeginRequest() and the > MonoRailHttpHandlerFactory.GetHandler() that changes the url? > > Thanks. > > 2009/3/24 Rafael Teixeira <[email protected]>: >> It is probably a bug in Mono. Not sure if it is dealing with >> case-insensitiveness in reflection correctly, have you tried to use the >> route with "Profile" instead of "profile" for it's default value. Also how >> is your controller class named? if the "Controller" suffix is not correctly >> cased it may also fail. >> >> If these variations work please enter a bug case in Mono's bugzilla. >> >> Cheers >> >> On Mon, Mar 23, 2009 at 7:51 PM, Ricardo Lopes <[email protected]> wrote: >>> >>> It didn't work. >>> >>> I also tried to change the route to this: >>> >>> new PatternRoute("profilelist", "/profile/list") >>> >>> .DefaultForArea().Is("edit").DefaultForController().Is("profile").DefaultForAction().Is("list"); >>> >>> And whe i tried the url http://127.0.0.1/profile/list >>> >>> I got the same exception and stack trace, but it assumed the area to >>> be "profile/edit" instead of "edit": >>> >>> Controller not found. Area: 'profile/edit' Controller Name: 'profile' >>> >>> >>> >>> 2009/3/22 c.sokun <[email protected]>: >>> > >>> > Try, >>> > rules.Add(new PatternRoute("profilelist", >>> > "/profile/list/[action]").DefaultForArea >>> > ().IsEmpty.DefaultForController().Is("profile").DefaultForAction().Is >>> > ("list")); >>> > >>> > On Mar 20, 5: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. >>> > > >>> > >>> >>> >>> >>> -- >>> >>> Ricardo Lopes >>> >>> >> >> >> >> -- >> Rafael "Monoman" Teixeira >> --------------------------------------- >> "I myself am made entirely of flaws, stitched together with good >> intentions." >> Augusten Burroughs >> >> >> >> > > > > -- > > Ricardo Lopes > -- Ricardo Lopes --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
