Your new โSubFolderโ route does not include the ability to enable actions on the route (in your case, โAdminโ).
Your url wants to map a route, e.g.
"SubFolder/ChildController/{action}"
If you didnโt indicate "{action}" on your route, it will not match your route. Then he tries to use the default route, which obviously does not work.
Try adding "{action}" to your route, as shown in the example below.
routes.MapRoute( "SubFolder", // Route name "SubFolder/ChildController/{action}", new { controller = "ChildController", action = "Index" }, new[] { "Homa.Areas.Kiosk.Controllers.SubFolder" });
source share