title: WebAPI Delete not working - 405 Method Not Allowed
body: <p>I appreciate any help on this as the site is supposed to go live tonight!</p>
  
  <p>I have a web api controller with a Delete method. The method executes fine on my local machine running IIS Express (Windows 8) but as soon as I deployed it to the live IIS server (Windows Server 2008 R2) it stopped working and throws the following error message:</p>
  
  <p><strong>HTTP Error 405.0 - Method Not Allowed
  The page you are looking for cannot be displayed because an invalid method (HTTP Verb) is being used</strong></p>
  
  <p>I have looked around the web for solutions and I implemented most reasonable ones. My web config has the following settings:</p>
  
  <pre><code>&lt;system.webServer&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
  &lt;handlers&gt;
      &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /&gt;
      &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /&gt;
      &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0" /&gt;
      &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /&gt;
      &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /&gt;
      &lt;add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /&gt;
  &lt;/handlers&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>I have also tried to change the Handler Mappings and Request Filtering in IIS to no avail. Please note that the WebDAV Authoring Rules in IIS seems to be disabled.</p>
  
  <p>Any ideas will be greatly appreciated
  Thanks.</p>