I'm getting an unexpected error when hijacking routes in Umbraco 6.1.6.
I've created my custom controller as shown in the docs but I cannot get the "default" ActionResult Index() to fire for pages where I haven't specified the template.
Instead I get this unhelpful error...
AmbiguousMatchException: Ambiguous match found.
Is this because I have pages matching the doctype, but DO have valid templates applied to them? I was hoping that I wouldn't have to specify Actions for every template on a given doctype and Index act as the override if the template(s) are not specified in my controller class. Maybe i've got this wrong.
Ambiguous match found. Route Hijacking
I'm getting an unexpected error when hijacking routes in Umbraco 6.1.6.
I've created my custom controller as shown in the docs but I cannot get the "default" ActionResult Index() to fire for pages where I haven't specified the template.
Instead I get this unhelpful error...
Is this because I have pages matching the doctype, but DO have valid templates applied to them? I was hoping that I wouldn't have to specify Actions for every template on a given doctype and Index act as the override if the template(s) are not specified in my controller class. Maybe i've got this wrong.
Can someone clarify?
Thanks in advance
Martin
Hi Martin,
I can see in the issue tracker that there is an issue could it be this that you are running into http://issues.umbraco.org/issue/U4-3675, also try to see this post http://our.umbraco.org/forum/developers/extending-umbraco/46357-Ambiguous-match-found-using-T4MVC,-Umbraco-6-and-hijacking-routes
Hope this can help you.
/Dennis
is working on a reply...