在IIS7.5上部署后,MVC3路由无法正常工作 [英] MVC3 routing not working after deployment on IIS7.5
问题描述
在VS2010中创建Web应用程序项目后,添加路由路由并在调试模式下运行,路由似乎正常工作,我没有问题。
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.
但是当我尝试在本地计算机上的IIS7.5上部署它,并尝试单击使用它抛出的路由的链接:
HTTP错误404.0 - 未找到
您要查找的资源已被删除,其名称已更改,或暂时无法使用。
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?
推荐答案
我能够解决这个问题,并在此处记录我是如何做到的:
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
这篇关于在IIS7.5上部署后,MVC3路由无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!