Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 954847 - Last Review: June 27, 2008 - Revision: 1.0
IIS 6.0 returns path information that is incorrect when you use the WebDAV PROPFIND method
On This Page
SYMPTOMS
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 (/).
CAUSE
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."
WORKAROUND
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.
MORE INFORMATION
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
Depth: infinity\r\n
Host: localhost\r\n
Accept: */*\r\n
Content-Length:90\r\n
\r\n
<?xml version="1.0" encoding="utf-8" ?>\r\n
<propfind xmlns="DAV:">\r\n
<propname/>\r\n
</propfind>
- 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.
APPLIES TO
- Microsoft Internet Information Services 6.0
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please