The information in this article applies to:
SYMPTOMSWhen you delete a file and then immediately copy a file with the same name to the FTP server, an "Access is Denied" error message may occur. The following command sequence will result in the "Access is Denied" error:
CAUSEThe FTP server caches the file handles of the deleted files that were previously fetched preventing their deletion. After a minimum cache sweep period, the file finally gets deleted when the cached file handle is closed. If the same file is put on the server before this minimum sweep interval has elapsed, the Put command fails with the "Access is Denied" error message. RESOLUTION
To work around the problem, do one of the following:
STATUS
Microsoft has confirmed this to be a problem in Microsoft Internet
Information Server version 4.0. MORE INFORMATION
The following registry information may also be helpful in regards to this issue.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters\DisableMemoryCache DWORD 1If you want to set a time value for caching set: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters\ObjectCacheTTL DWORD <value_in_seconds>You can set these parameters under the following as well: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\ParametersHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSFTPSVC\ParmetersHowever, here is the hierarchy: If a value is set under Inetinfo, then that is the value that is used, as this is the host for W3svc.dll and Ftpsvc2.dll. If you set the value under W3SVC, then this is used not only for W3SVC but also MSFTPSVC. Therefore, if you set the W3SVC ObjectCacheTTL to 120 (seconds) and the MSFTPSVC DisableMemoryCache to 1, then everything is cached for 120 seconds. Try checking for these parameters (particularly a time value for ObjectCacheTTL) and test by adding the DisableMemoryCache key under Inetinfo to see if that resolves the issue. Additional query words:
Keywords : IIS4Faq kbfaq |
Last Reviewed: December 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |