Put,delete operation of Rest service on IIS7.5 occurs HTTP Error 405.0-method not allowed resolution

Source: Internet
Author: User
Put,delete operation of Rest service on IIS7.5 occurs HTTP Error 405.0-method not allowed resolution


WebDAV is a set of extensions to the Hypertext Transfer Protocol (HTTP) that provides standards for editing and file management between computers on the Internet. This protocol allows users to perform remote basic file operations via the web, such as copying, moving, deleting, and so on. In IIS 7.0, WebDAV is a stand-alone extension module that requires a separate download, while IIS 7.5 integrates WebDAV, but WebDAV Put,delete. So the RESTful service (WCF Data service,wcf Rest service,asp.net Web api,asp.net MVC) deployed on IIS 7.5 is tragic, HTTP Error occurs when a put request is sent 405.0– method is not allowed error, the workaround is simple, add the following setting in Web.config:


<system.webServer>
<modules>
<remove name= "Webdavmodule"/>
</modules>
<remove name= "WebDAV"/>
</system.webServer>
Related Article

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.