Microsoft KB Archive/912152

= You cannot access a WebDAV Web folder from a Windows XP-based client computer =

Article ID: 912152

Article Last Modified on 2/6/2006

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows XP Professional x64 Edition

-



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
You cannot access a Web Distributed Authoring and Versioning (WebDAV) Web folder from a Microsoft Windows XP-based client computer. When you try to do this, you may experience the following symptoms:  When you use a Universal Naming Convention (UNC) path to access the Web folder, you receive an error message that is similar to the following:

\\server\webfolder\folder is not accessible. You might not have permission to use this network resource.

Contact the administrator of this server to find out if you have access permissions.

A device attached to the system is not functioning.

error 31 = ERROR_GEN_FAILURE

 When you map a driver letter to access the Web folder, you receive an error message that is similar to the following:

Disk is not formatted

Windows cannot read from this disk. The disk might be corrupted, or it could be using a format that is not compatible with Windows.

 When you try to enumerate the Web folder at a command prompt, you receive the following error message:

File Not Found



Additionally, every time that you try to access the Web folder, memory consumption increases for the Svchost.exe process that contains the WebClient service. This increase may be approximately 20 megabytes (MB) for every 20,000 files in the Web folder. The memory is not released when you stop the WebClient service. The memory is released only if the computer is restarted.



CAUSE
This problem may occur if all the following conditions are true:  The client computer is running one of the following configurations:  Windows XP with Service Pack 1 (SP1) and security update 896426 Windows XP with Service Pack 2 (SP2)</li> Windows XP Professional x64 Edition</li></ul> </li> The WebDAV folder contains many files. For example, the folder contains 20,000 or more files. By default, Windows XP will enumerate approximately 1,000 files in one Web folder. This number is based on the default setting for the following registry subkey:

Value: FileAttributesLimitInBytes

Data Type: DWORD

Default Value: 1,000,000 decimal (1 MB)

Description: This registry subkey determines the maximum collective size of all file attributes in one folder that is allowed by the WebDAV redirector. This attribute limit covers all the PROPFIND and PROPPATCH responses.

</li></ul>

The problem occurs because the size of all the file attributes that are returned by the WebDAV server is much larger than what is expected. By default, this size is limited to 1 MB. This limit is for security reasons. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

900900 You may receive an error message when you try to download a file that is larger than 50000000 bytes from a Web folder on a computer that is running Windows XP with Service Pack 1 or with Service Pack 2

<div class="workaround_section">

WORKAROUND
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To work around this problem, add a DWORD entry that is named FileAttributesLimitInBytes to the following registry subkey:

Configure the FileAttributesLimitInBytes registry value to the size that you want, and then restart the WebClient service. To do this, follow these steps: <ol> Click Start, click Run, type regedit, and then click OK.</li> Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\

</li> On the Edit menu, point to New, and then click DWORD Value.</li> Type FileAttributesLimitInBytes for the name of the DWORD, and then press ENTER.</li> Right-click FileAttributesLimitInBytes, and then click Modify.</li> In the Value data box, type the value that you want to use, and then click OK. For example, if the Web folder contains 20,000 files, type 20000000 in the Value data box.

Note If the default value is 1,000,000 (1 MB), Windows XP will enumerate a maximum of approximately 1,000 files in one folder. The actual maximum number of files may vary, depending on the number of file attributes or file properties. By default, the WebClient service does not ask for specific WebDAV properties. Therefore, the server returns all file attributes. The Microsoft Office integrated Webfolders redirector does ask for specific WebDAV properties.</li> Exit Registry Editor.</li> Stop and then restart the WebClient service. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Start, click Run, type cmd, and then click OK.</li> Type the following commands, and then press ENTER after each command:

net stop webclient

net start webclient

</li></ol> </li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: MS05-028 KB896426 webDAV webfolder webclient webclnt.dll memory leak error 58 0000003a ERROR_BAD_NET_RESP &quot;The specified server cannot perform the requested operation.&quot; error 31 ERROR_GEN_FAILURE FileSizeLimitInBytes

Keywords: kberrmsg kbtshoot kbexpertiseadvanced KB912152

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.