After MVC 4.0 web application deployed, getting HTTP 404 Page Not Found

Programming, error messages and sample code > ASP.NET
It works perfectly well when tested it using the VS 2010/2012 debugging dev server. After MVC 4.0 web application deployed, getting HTTP 404 Page Not Found.

Solution:

1. Make sure you are using ASP.NET 4.x, Integrated Mode Pool.
2. Make sure you have below code in your web.config:
<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>