0
我加入以下代码路由在MVC应用程序部署在IIS
public class RouteController : Controller
{
public ContentResult GetImpression()
{
// Do something
}
}
在RouteConfig类我已经添加了以下
routes.MapRoute(
name: "Impression",
url: "imp",
defaults: new { controller = "Route", action = "GetImpression", id = UrlParameter.Optional }
);
我期待我的http://mymachine/imp
工作。我究竟做错了什么?我是否也必须在IIS中进行一些设置?
伟大的工具。感谢这是订购问题 – StackOverflowVeryHelpful 2014-10-16 21:35:18