by Adam
30. January 2012 16:03
If you ever set up a website which makes use of the extensionless URLs then you may have come across a problem where the page www.yourgreatsite.com/Home cannot be found but www.yourgreatsite.com/Home.cshtml works perfectly.
The problem is that, by default, IIS is not set up for URL rewriting. So you need to enable it. If using a shared host, like I was, then you should add the following to your web config file...
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
IF your hosting your own site or you have more control over IIS then you can enable URL rewriting yourself.