왜 ASP.NET MVC 라우팅과 같은 문제가 있는지 알 수 없습니다. 현재 설치 한 경로를 알려주는 도구가 있었으면 좋겠습니다.잘못된 라우팅은 ASP.NET MVC입니다.
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"SignUp", // Route name
"account/{controller}/{action}", // URL with parameters
new { controller = "Home", action = "Register" } // Parameter defaults
);
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
}
가 나는 내가 액세스 할 수 있기를 기대하고 있었다 HomeController.cs
public ActionResult Register()
{
return View();
}
에 정의 된 다음 한 :에 관계없이, 내 global.asax.cs에서
내가 다음이 파일 이 페이지를 /account/register 브라우저에서 방문하십시오. 그러나, 나는 404를 계속 얻는다. 내가 무엇을 잘못하고 있냐?
http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx – SLaks