title: IIS 7.5 + enable PUT and DELETE for RESTFul service, extensionless
body: <p>i am trying to understand how IIS 7.5 handles POST and PUT request. </p>
  
  <p>I am writing a RESTful service using OpenRasta framework. The POST operation works without any problem, but the PUT operation for the same URL does not. It returns error like the following</p>
  
  <pre><code>Detailed Error Information
  Module: IIS Web Core
  Notification: MapRequestHandler
  Handler: StaticFile
  Error Code: 0x80070002
  </code></pre>
  
  <p>the url is like this following "http://localhost/MyService/Resource.Something.manifest"</p>
  
  <p>Same setup works fine in visual studio development IIS.</p>
  
  <p><strong>Solution</strong></p>
  
  <p>Basically the default ExtensionlessUrlHandler does not accept PUT and DELETE verb. Just need to add them.</p>
  
  <pre><code>&lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /&gt;
  </code></pre>