MVC3 routing does not work after deployment on IIS7.5

After creating a web application project in VS2010, adding a routing route and starting in debug mode, routing works fine, and I have no problem.

But when I tried to deploy it on IIS7.5 on my local computer and tried to click on a link using routing, it throws: "HTTP Error 404.0 - Not Found The resource you are looking for has been deleted, its name has changed or is temporarily unavailable.

Has anyone encountered the same problem?

+4
source share
2 answers

I managed to solve this problem and make a document on how I did it:

http://czetsuya-tech.blogspot.com/2011/06/how-to-deploy-mvc3-powered-website-to.html

0
source

It looks like you are missing a module for UrlRouting.

  • Go to the site in IIS
  • Click "Modules"
  • Look for a module like: System.Web.Routing.UrlRoutingModule (in my IIS this is UrlRoutingModule-4.0)
  • If you cannot find it, click "Add a managed module" and paste the information in the last step. Also check the box.

Hope this helps. If this is not a problem, check if you are working in Integrated mode (look at the application pool for this application).

+6
source

All Articles