Hi, I am doing some tests on mono+linux and everything works fine for my application 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 the Web.config I have added the following: <httpModules> <add name="routing" type="Castle.MonoRail.Framework.Routing.RoutingModuleEx,Castle.MonoRail.Framework"/ > </httpModules> In Global.asax I have added this rule for testing: private void Application_Start(object sender, EventArgs e) { RoutingModuleEx.Engine.Add(new PatternRoute("default","<community>/<controller>/ <action>.rails").DefaultForArea().IsEmpty.DefaultForController().Is ("Home"). DefaultForAction().Is("Index").DefaultFor("community").Is("1")); } When I try the url for that route i get a ControllerNotFoundException. http://localhost/1/home/index.rails Controller not found. Area: '1' Controller Name: 'home' Description: HTTP 500. Error processing request. Stack Trace: Castle.MonoRail.Framework.ControllerNotFoundException: Controller not found. Area: '1' Controller Name: 'home' 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 The only PatternRoutes that do something are such like: PatternRoute("default","<controller>/<action>.rails").DefaultForArea ().IsEmpty.DefaultForController().Is("Home").D efaultForAction().Is("Index")); (works with the url: http://localhost/Home/index.rails) PatternRoute("default2","<action>.rails").DefaultForArea ().IsEmpty.DefaultForController().Is("Home").D efaultForAction().Is("Index")); (works with the url: http://localhost/index.rails) PatternRoute("default3","<community>.rails").DefaultForArea ().IsEmpty.DefaultForController().Is("Home").D efaultForAction().Is("Index").DefaultFor("community").Is("1")); (works with the url: http://localhost/1.rails) Any thing else gives the mentioned ControllerNotFoundException Any ideas? Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 castle-project-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---