How do I enable HTTP PUT and DELETE for ASP.NET MVC
- GO to Handler Mappings in your IIS Manager.
- Find
ExtensionlessUrlHandler-Integrated-4.0
, - double click it.
- Click Request Restrictions... button and on Verbs tab, add both
DELETE
andPUT
.
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>