ASP.NET MVC on IIS 7.5

前端 未结 28 2286
北荒
北荒 2020-11-22 11:33

I\'m running Windows 7 Ultimate (64 bit) using Visual Studio 2010 RC. I recently decided to have VS run/debug my apps on IIS rather than the dev server that comes with it. <

28条回答
  •  故里飘歌
    2020-11-22 12:28

    I altered my default route at one point from:

    routes.MapRoute(
    "Default",
        "{controller}/{action}/{id}",
        new { controller = "Home", action = "Index", id = UrlParameter.Optional }
    

    To:

    routes.MapRoute(
    "Default",
        "{controller}/{action}/{id}",
        new { controller = "Home", action = "Index" }
    

    Which gave me your error. Glad someone mentioned routing because I probably would've been on this forever.

提交回复
热议问题