Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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

 

↑ Back to the top


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.

 

↑ Back to the top


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

 

↑ Back to the top


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/

 

↑ Back to the top


Keywords: vkball, kb

↑ Back to the top

Article Info
Article ID : 2021641
Revision : 1
Created on : 1/8/2017
Published on : 3/19/2010
Exists online : False
Views : 349