How to enable IIS to respond to HTTP put and delete requests

Source: Internet
Author: User
Tags iis
The reason for this is that IIS installs a WebDAV module by default, and this module blocks HTTP put and delete requests.


As a result, the workaround is simple, in the Web site where you have deployed the Internet API, remove the WebDAV module.










In the Web application that contains the Web API REST service, open the Modules tab, select Webdavmodule, and then right-click Delete, as shown in the figure above.
Once deleted, visit the website again and you can see that it works fine.






If IIS reports 500 errors for put and delete requests, you can try modifying Web. config to remove Webdavmodule:



<system.webServer>
<modules runallmanagedmodulesforallrequests= "true" >
<remove name= "Webdavmodule"/>
</modules>
<remove name= "WebDAV"/>
<remove name= "extensionlessurlhandler-integrated-4.0"/>
<remove name= "Optionsverbhandler"/>
<remove name= "Traceverbhandler"/>
<add name= "extensionlessurlhandler-integrated-4.0" path= "*." verb= "*" type= " System.Web.Handlers.TransferRequestHandler "precondition=" integratedmode,runtimeversionv4.0 "/>
</system.webServer>






Reference URL: HTTP://WWW.JINXULIANG.COM/BLOG/ARTICLE/READ/3348D442-9432-49D8-ABE9-2C64CE6436CD


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.