HTTP Error 405.0-method not allowed occurs in the put Operation of the rest service on iis7.5

Source: Internet
Author: User

WebDAV is a set of extensions of Hypertext Transfer Protocol (HTTP). It provides standards for editing and file management between computers on the Internet. with this protocol, users can remotely perform basic file operations, such as copying, moving, and deleting files on the web. In IIS 7.0, WebDAV is an independent extension module and needs to be downloaded separately. In IIS 7.5, WebDAV is integrated. However, WebDAV puts put and delete the files to click. Therefore, restful services (WCF data service, WCF rest service, Asp. net web API, Asp. net MVC). When a put request is sent, the HTTP Error 405.0-method not allowed error occurs, and the solution is simple. add the following settings to config:

<System. webserver>
<Modules>
<Remove name = "webdavmodule"/>
</Modules>
<Handlers>
<Remove name = "WebDAV"/>
</Handlers>
</System. webserver>

Http://brockallen.com/2012/10/18/cors-iis-and-webdav/

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.