You use the WebDAV PROPFIND method to retrieve the properties for a resource that is hosted on Internet Information Services (IIS) 6.0. When you do this, IIS 6.0 returns path information that is incorrect. For example, IIS 6.0 returns path information that may contain an additional forward slash mark (/).
This problem may occur if the following conditions are true:
- The virtual directory uses the root of a drive as the Web site content directory.
- The Depth header in the request is set to "Infinity."
To work around this problem, create a new folder in the root of the drive. Then, configure the virtual directory to use the new folder as the Web site content directory.
Steps to reproduce the problem
- In IIS Manager, create a new virtual directory that is named the Test virtual directory.
- Configure the Test virtual directory to use the following content directory:harddisk:\
- In the Test virtual directory, create a new folder that is named the Dav folder.
- Send the following request to IIS 6.0 by using the WFetch tool (WFetch.exe).
PROPFIND /test/dav HTTP/1.1\r\n
Content-type: text/xml; charset="utf-8"\r\n
<?xml version="1.0" encoding="utf-8" ?>\r\n
- Notice that IIS 6.0 returns the following path information for the Dav folder:http://localhost/test//dav/Note If you use the WFetch tool to send a GET request for the path information that IIS 6.0 returns, IIS 6.0 returns a "301 Moved Permanently" response. In this case, IIS 6.0 also returns the correct path.
Article ID: 954847 - Last Review: Jun 27, 2008 - Revision: 1