Hi all,
I am researching an apparently common problem with iis 4 and possibly other versions. The problem occurs when accessing files through the FTP service. After listing these files on the server they remain locked in the iis cache for a certain period and any efforts to delete them or replace them gives an "Access Denied" error. Normally all you have to do is wait for a certain cache sweep period and these files will be freed. However, in this case the files remain permanently locked and cannot be deleted through the FTP service, on the server, or from a shared drive mapped to the FTP root. Rebooting the server solves this problem but obviously in a production environment this is not really an option.
The Microsoft solution to this problem is to:
1) Wait for a certain sweep period and try again (not really an option when FTPing through an application that must make immediate changes)
2) Edit the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters and create a new value to DisableMemoryCache. This is an option but I'm pretty sure that this will turn off caching to all IIS services. Since we are running a web server as well that requires caching this would not be very efficient.
3) Rename the file that is to be deleted, copy the new file to the FTP server and then delete the renamed file. This is an option, but requires recoding of some of the application, there must be an easier way.
Does anyone know if there is a way to turn off the caching of files just for the FTP service? I understand that for the Web service you can create HTTP headers to specify that specific MIME types not be cached. Is there a way to do this for the FTP service?
Any insight would be greatly appreciated,
whagar
I am researching an apparently common problem with iis 4 and possibly other versions. The problem occurs when accessing files through the FTP service. After listing these files on the server they remain locked in the iis cache for a certain period and any efforts to delete them or replace them gives an "Access Denied" error. Normally all you have to do is wait for a certain cache sweep period and these files will be freed. However, in this case the files remain permanently locked and cannot be deleted through the FTP service, on the server, or from a shared drive mapped to the FTP root. Rebooting the server solves this problem but obviously in a production environment this is not really an option.
The Microsoft solution to this problem is to:
1) Wait for a certain sweep period and try again (not really an option when FTPing through an application that must make immediate changes)
2) Edit the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters and create a new value to DisableMemoryCache. This is an option but I'm pretty sure that this will turn off caching to all IIS services. Since we are running a web server as well that requires caching this would not be very efficient.
3) Rename the file that is to be deleted, copy the new file to the FTP server and then delete the renamed file. This is an option, but requires recoding of some of the application, there must be an easier way.
Does anyone know if there is a way to turn off the caching of files just for the FTP service? I understand that for the Web service you can create HTTP headers to specify that specific MIME types not be cached. Is there a way to do this for the FTP service?
Any insight would be greatly appreciated,
whagar