The request matched multiple endpoints #2

Closed
opened 2025-08-09 17:14:37 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ghost on 12/5/2018

I migrated application to ASP.NET core 2.2.0 from 2.1.6 and since then been getting the following error:

AmbiguousMatchException: The request matched multiple endpoints. Matches:

Frontend.Controllers.HomeController.Index (Frontend)
Frontend.Areas.Reports.Controllers.HomeController.Index (Frontend)

Here is the code we use that has been working properly before:
routes.MapRoute("areaRoute", "{area:exists}/{controller=Home}/{action=Index}/{id?}");
routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}");

routes.MapSpaFallbackRoute("reportsApp", "Reports", new
            {
                area = "Reports",
                controller = "Home",
                action = "Index"
            });
*Originally created by @ghost on 12/5/2018* I migrated application to ASP.NET core 2.2.0 from 2.1.6 and since then been getting the following error: > AmbiguousMatchException: The request matched multiple endpoints. Matches: > > Frontend.Controllers.HomeController.Index (Frontend) > Frontend.Areas.Reports.Controllers.HomeController.Index (Frontend) Here is the code we use that has been working properly before: `routes.MapRoute("areaRoute", "{area:exists}/{controller=Home}/{action=Index}/{id?}");` `routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}");` ``` routes.MapSpaFallbackRoute("reportsApp", "Reports", new { area = "Reports", controller = "Home", action = "Index" }); ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#2
No description provided.