You can't access a WebDAV Web folder from a Windows-based client computer
This article provides help to solve an issue where you can't access a Web Distributed Authoring and Versioning (WebDAV) Web folder from a Windows-based client computer.
Original product version: Windows 10 - all editions, Windows 7 Service Pack 1, Windows Server 2012 R2
Original KB number: 912152
You can't access a WebDAV Web folder from a Windows-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.
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)
- Windows XP Professional x64 Edition
- Windows 7
- Windows 8
- Windows 8.1
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.
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, see Folder copy error message when downloading a file that is larger than 50000000 bytes from a Web folder.
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.
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:
Click Start, click Run, type regedit, and then click OK.
Locate and then click the following registry subkey:
On the Edit menu, point to New, and then click DWORD Value.
Type FileAttributesLimitInBytes for the name of the DWORD, and then press ENTER.
Right-click FileAttributesLimitInBytes, and then click Modify.
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.
If the default value is 1,000,000 (1 MB), Windows 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.
Exit Registry Editor.
Stop and then restart the WebClient service. To do this, follow these steps:
Click Start, click Run, type cmd, and then click OK.
Type the following commands, and then press ENTER after each command:
net stop webclient net start webclient