我正在使用ASP.NET MVC,并尝试创建一个控制器子文件夹。我已经查看了该网站上的其他帖子并尝试了我能在网上找到的内容,但仍然遇到了这个问题:
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.
以下是我在控制器文件夹中创建的子文件夹的屏幕截图。
![enter image description here](https://istack.dev59.com/CGQno.webp)
![enter image description here](https://istack.dev59.com/gq8RD.webp)
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 }
);
}
但是我的子文件夹仍然无法正常工作。我做错了什么?