ASP.NET MVC Friendly URL

Article Details
URL: https://support.quadrahosting.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=220
Article ID: 220
Created On: 11 Jun 2015 10:14 AM

Answer
Symptom: You are getting a 404 Error when trying to access your asp.net site.

If you have deployed an ASP.NET MVC application and your friendly URLs aren't working:

  1. Make sure to choose INTEGRATED mode for your asp.net in the control panel -> Web Options -> ASP.NET
  2. Adjust your web.config file so that the 'modules' tag under <system.webServer> includes the following:

runAllManagedModulesForAllRequests="true"

For example:

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
    </modules>
</system.webServer>
Reference: https://svenaelterman.wordpress.com/2011/01/31/using-asp-net-4-0-extension-less-routing-on-iis-7-5/