mvc IIS 7 404 erro

If you are having issue getting an MVC web site running on a server with IIS 7 you should check your web.config settings.  I tried a variety of things, searched around the net, and finally found what I was looking for.

After some trial and error, I found that in order for things to work in IIS7 you need the below entries in your web.config, in the system.Webserver section within modules and handlers (leave other items that may already be there). 

<modules runAllManagedModulesForAllRequests="true" >
                <remove name="UrlRoutingModule"/>
                <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />


I found the below articles to be very helpful in troubleshooting the issue I was having.


disqus update_thread HTTP method for this call must be POST

Recently I was trying to work with the Disqus comment system's API (version 1.1) and when trying to update infomation via the API, I kepy receiving:

 HTTP method for this call must be POST

In order to no longer recieve the error, I modified the URL I was posting to to end with a "/", for example:

That fixed the issue...