Skip to content

Multiple actions matched #28

@bojanivancev

Description

@bojanivancev

AmbiguousActionException: Multiple actions matched. The following actions matched route data and had all constraints satisfied:

MyProject.WebApp.Controllers.HomeController.Index (MyProject.WebApp)
MyProject.WebApp.Areas.Admin.Controllers.HomeController.Index (MyProject.WebApp)

I am issuing this problem when i am using areas... i.e. admin and identity area on this project...
so far, my routes look like this

routes.MapRoute(
name: "areaRoute",
template: "{area}/{controller=Home}/{action=Index}/{id?}");

routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}",
defaults: new { culture = LocalizationRouteDataHandler.DefaultCulture }
);

This was working before i put your code in place...

Do you have any suggestions?

thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions