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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---