MapRoute 不工作,URL 仍然显示找不到页面?
也许我在这里很困惑,但我正在尝试访问 http://ryan.local.myappname.com/订购
其他东西,例如/Home work,我检查并找到了这个routes.MapRoute东西并添加了这个:
routes.MapRoute("Order", "Order", new { controller = "Order", action = "Index" });
但它仍然说找不到页面...这是怎么回事?
Maybe I am confused here but I am trying to go to http://ryan.local.myappname.com/Order
other things such as /Home work and I checked and found this routes.MapRoute thing and added this:
routes.MapRoute("Order", "Order", new { controller = "Order", action = "Index" });
But it still says page not found... what the dealio?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试试这个:
Try this:
您运行的是 IIS 6 吗?
如果是这样,则存在您必须手动解决的已知问题:
http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/
Are you running IIS 6?
If so, it has known issues that you'll have to manually resolve:
http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/