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

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

Symptoms
You cannot access a Web Distributed Authoring and Versioning (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.
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)
    • 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:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\

    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, 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
Workaround
Important 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, click the following article number to view the article in the Microsoft Knowledge Base:
322756 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:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\
Configure the FileAttributesLimitInBytes registry value to the size that you want, and then restart the WebClient service.To do this, follow these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type FileAttributesLimitInBytes for the name of the DWORD, and then press ENTER.
  5. Right-click FileAttributesLimitInBytes, and then click Modify.
  6. 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 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.
  7. Exit Registry Editor.
  8. Stop and then restart the WebClient service. To do this, follow these steps:
    1. Click Start, click Run, type cmd, and then click OK.
    2. Type the following commands, and then press ENTER after each command:
      net stop webclient
      net start webclient
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.



This applies to Windows 7 - Windows 2012 as well
MS05-028 KB896426 webDAV webfolder webclient webclnt.dll memory leakerror 58 0000003a ERROR_BAD_NET_RESP "The specified server cannot perform the requested operation." error 31 ERROR_GEN_FAILURE FileSizeLimitInBytes
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
गुण

आलेख ID: 912152 - पिछली समीक्षा: 11/17/2014 06:53:00 - संशोधन: 1.0

Microsoft Windows XP Home Edition, Microsoft Windows XP Professional, Microsoft Windows XP Professional x64 Edition, Windows 7 Home Premium, Windows 7 Professional, Windows 7 Ultimate, Windows 8, Windows 8 Pro, Windows 8.1, Windows 8.1 Pro

  • kbtshoot kbexpertiseadvanced kberrmsg KB912152
प्रतिक्रिया