title: WebDav troubles for restfull WCF web service
body: <p>I created a WCF restfull service in .NET 4 and I published it under IIS 7.5/windows 7 x86. The verbs GET and POST worked fine, but the DELETE and PUT gave an error: </p>
  
  <blockquote>
  <pre><code>Error: The remote server returned an error: (405) Method Not Allowed.
  </code></pre>
  </blockquote>
  
  <p>After googling (a lot), I've found out that the problem is caused by WebDav module which is installed (automatically? dunno) in IIS. The only approach that worked for me was the one found <a href="http://nikhilthaker86.wordpress.com/2010/03/27/issue-hosting-restful-services-on-iis-7/" rel="nofollow noreferrer">here</a>. </p>
  
  <p>However, removing the webdav module from the entire web site is somewhat too intrusive, in my opinion. Does anyone know another approach to inhibit the filtering action on verbs imposed by webdav, but only for a specific web application, not for the whole website?</p>
  
  <p>Thank you.</p>
  
  <p><strong>EDIT</strong>
  I know about <a href="https://stackoverflow.com/questions/23963/restful-web-services-and-http-verbs">missing put and delete still leads to restful service</a> - but I keep wanting to allow these verbs.</p>