In my case neither Windows Features nor aspnet_regiis -i
didn't do the work. After hours of digging in the Internet, I made my own solution:
In the IIS Manager in Modules I changed inherit to local in UrlRoutingModule-4.0 node:
In web.config I pasted a mix of some tips from this forum:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="UrlRoutingModule-4.0"></remove>
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition=""></add>
</modules>
</system.webServer>
Hope it helps