저는 여전히 ASP.NET MVC에 익숙하지 않아 약간의 어려움을 겪고 있습니다.ASP.NET MVC에서 내 웹 사이트를 게시 한 후 404 오류가 발생하는 이유는 무엇입니까?
Visual Studio에서 직접 실행되는 ASP.NET 개발 서버를 사용하면 내 응용 프로그램이 문제없이보기를 찾을 수 있습니다. 표준 ASP.NET의 URL을 사용 - http://localhost:1871/InterestingLink/Register
을 그러나, 나는 http://localhost/MyFancyApplication/InterestingLink/회원 가입을 통해 IIS 액세스를 내 사이트를 게시 할 때, 나는 404 오류가 발생합니다.
무엇이 잘못 되었을지에 대한 제안 사항이 있습니까?
정보를 더 많이 ...
이 내 Global.asax 파일이 (표준) 모습입니다 :
public class MvcApplication : System.Web.HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
}
protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
}
}
내 컨트롤러도 매우 간단하다 :의
public class InterestingLinkController : Controller
{
public ActionResult Register()
{
return View("Register");
}
}