MVC3 routing not working after deployment on IIS7.5
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 s开发者_Python百科ame issue?
Sounds like you are missing the module for UrlRouting.
- Go to the site in IIS
- Click on Modules
- Look for an module of type: System.Web.Routing.UrlRoutingModule(in my IIS the name is UrlRoutingModule-4.0)
- If you can't find it click "Add Managed Module" and paste the information in last step. Also check the checkbox.
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).
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
精彩评论