[Mono-aspnet-list] mono MapRoute

=?gb2312?B?sL26o8HW?= aohl at 21edu.com
Wed Jul 28 21:06:03 EDT 2010


Hi All,
However I was seeing some issues with default route parameters, it seems like they're ignored if they're not provided in the URL:
For example:
routes.MapRoute(
"Default",
"Image/{action}",
new { controller = "Home", action = "Index", id = "" }
);
Will never work because it states it cannot find the controller:
value name controller does not match any of the values.
If i change my route to this:
routes.MapRoute(
"Default",
"{controller}/Index",
new { controller = "Home", action = "Index", id = "" }
);
It will start stating it cannot find the action.
If i change to route to
routes.MapRoute(
"Default",
"someName",
new { controller = "Home", action = "Index", id = "" }
);
Will never work because it states it cannot find the controller and action.
If i change to route to
routes.MapRoute(
"Default",
"{controller}/{action}",
new { controller = "Home", action = "Index", id = "" }
);
It works fine if i provide /Home/Index but won't work if i provide one or the other. Where do i file bugs like this? 
Thanks.

2010-07-29 



skylark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20100729/2b2b829a/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?gb2312?B?sL26o8HWKDEpLnZjZg==?=
Type: text/x-vcard
Size: 117 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20100729/2b2b829a/attachment.vcf 


More information about the Mono-aspnet-list mailing list