ASP.NET MVC routing fails when using default.aspx/controller/action style url

后端 未结 1 587
旧巷少年郎
旧巷少年郎 2021-01-16 16:56

I\'m deploying an ASP.NET MVC site to a IIS6 webserver, so I\'m using a default.aspx/{controller}/{action} style routing strategy.

However, for some reason

1条回答
  •  被撕碎了的回忆
    2021-01-16 17:29

    RouteTable.Routes.RouteExistingFiles = true;
    

    Now it works. Got the answer from here.

    I think this info should have been on the asp.net/mvc site, like this page for instance.

    0 讨论(0)
提交回复
热议问题