I am using ASP.NET MVC and trying to create a subfolder of the controller. I looked at another post on this site and tried what I managed to find on the Internet, but it still faces this problem:
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
The screenshot below is a subfolder that I created in my controller folder.

and here is a screenshot of my View folder.

And here is what I tried in the RouteConfig.cs file
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); routes.MapRoute( name: "AdminSubForder", url: "admin/{controller}/{action}/{id}", defaults: new { controller = "HomeAdmin", action = "Index", id = UrlParameter.Optional } ); }
But my subfolder is still not working. What am I doing wrong here?
source share