Sending an anonymous HTTP PUT request to a WebDAV directory fails

Symptoms

Consider the following scenario.  You have a web site configured to use the WebDAV functionality of Internet Information Services (IIS) 7.0 or 7.5.  You configure the website to use Anonymous authentication, and you configure the WebDAV Authoring Rules to grant Write access to all users.  When you attempt to copy or move a file to the WebDAV directory by sending an HTTP PUT command, the operation fails.  You may see an error message similar to the following, depending on the HTTP client you are using:

 

An error occurred copying some or all of the selected files.

OR

HTTP 401 - Unauthorized

 

Cause

This behavior is by design.  Beginning in IIS 7.0, anonymously writing to a WebDAV publishing directory is not allowed.  Specifically, the PUT, MKCOL, PROPPATCH, COPY, MOVE, DELETE, and WebDAV-based GET requests all require authentication.

 

Resolution

To allow users to write files to a WebDAV publishing directory, you must configure the directory to use an authentication method other than Anonymous authentication.  For more information on configuring authentication types in IIS 7.0 and 7.5, please see the following document:

Configuring Authentication in IIS 7
http://technet.microsoft.com/en-us/library/cc733010(WS.10).aspx

 

More Information

For more information on WebDAV in IIS 7.0 and above, please see the following document:

What's New for WebDAV and IIS 7.0
http://learn.iis.net/page.aspx/360/what39s-new-for-webdav-and-iis-70/

 

Properties

Article ID: 2021641 - Last Review: Mar 19, 2010 - Revision: 1

Feedback