我的 ASP.NET MVC 路由出了什么问题?
我有一个基于 ASP.NET MVC 1 构建的应用程序,它已经运行良好很长时间了。我需要向其中添加一个功能,并意识到我不需要那里的路由,因为它们是由默认路由处理的。
当我在我的电脑上运行它时,路由一切正常,但是,当我上传到服务器时,它不想工作。我已经重新启动了 IIS,甚至重新启动了服务器,但仍然无法正常工作。
有什么想法吗?我还需要做其他事情吗?
I have an app that was built on ASP.NET MVC 1 and it's been working fine for a long time now. I needed to add a feature to it and realized that I didn't need the routes that were there because they were handled by the default route.
When I run it on my pc everything works fine with the routes, however, when I upload to the server, it doesn't want to work. I have restarted IIS and even rebooted the server but still not working correctly.
Any ideas? Do I need to do something else?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IIS 是什么版本?如果您使用的是 IIS6,则需要通配符映射来进行路由。
What version of IIS? If you are using IIS6, you need a wildcard map for routing.
路由调试器将保持您的理智: http://haacked.com/存档/2008/03/13/url-routing-debugger.aspx
Route debugger will preserve your sanity: http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx