在 IIS7.5 上部署后 MVC3 路由不起作用
在VS2010中创建Web应用程序项目后,添加路由并在调试模式下运行,路由似乎工作正常,我没有问题。
但是当我尝试将其部署在本地计算机上的 IIS7.5 上,并尝试单击使用路由的链接时,它会抛出: “HTTP 错误 404.0 - 未找到 您要查找的资源已被删除、更名或暂时不可用。”
有人遇到同样的问题吗?
After creating a Web Application project in VS2010, adding a routing route and run in debug mode the routing seems to work properly and I have no problem.
But when I tried to deploy it on IIS7.5 on my local machine, and tried to click a link that uses routing it throws:
"HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
Does anyone encountered the same issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您缺少 UrlRouting 模块。
我希望这有帮助。如果这不是问题,请检查您是否在集成模式下运行(查看该应用程序的应用程序池)。
Sounds like you are missing the module for UrlRouting.
I hope that helps. If that isn't the problem check if you are running under Integrated mode(Look at the App pool for that application).
我能够解决这个问题并记录我是如何做到的:
http://czetsuya-tech.blogspot.com/2011/06/how-to-deploy-mvc3-powered-website-to.html
I was able to resolved this issue and document on how I did it here:
http://czetsuya-tech.blogspot.com/2011/06/how-to-deploy-mvc3-powered-website-to.html