Saturday, January 18, 2014

How do I enable HTTP PUT and DELETE for ASP.NET MVC

  1. GO to Handler Mappings in your IIS Manager
  2. Find ExtensionlessUrlHandler-Integrated-4.0
  3. double click it. 
  4. Click Request Restrictions... button and on Verbs tab, add both DELETE and PUT


Remove WebDav from "Modules" and from "Handler Mappings"


Modules:
                WebDAVModule, %windir%\System32\inetsrv\webdav.dll, Native, Inherited

Handler Mappings:

                WebDAV, *, Enabled, Unspecified, WebDAVModule, Inherited

Then Restart IIS

It results in a Web.Config change of:

  <system.webServer>
        <modules>
            <remove name="WebDAVModule" />
        </modules>
        <handlers>
            <remove name="WebDAV" />
        </handlers>
  </system.webServer>

 
Submit this story to DotNetKicks

Read more...