Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 36
2.x, 3.x
Error occurred when moving cached file to final destination
When attempting an upload I get the following error message(s):

Error 80020009
Error occurred when moving cached file to final destination.

There are several possible causes of this error:

  1. The most common cause of this error is that the current File Permissions prevent the file from being moved.
  2. The filename syntax is incorrect.
  3. IIS can cache and lock the uploaded files.
For cause 1:
Verify that both the cache and destination directories have Read, Write, Execute , and Delete permissions for the anonymous user (typically IUSR_MachineName).

For cause 2:
Use the ServerName property to determine the correct syntax.

For cause 3:
In order to be able to rewrite ASP or HTM files with IIS4, you must set the following registry keys, located at

DisableMemoryCache REG_DWORD, set to 1. This will disable *ALL* caching, and will clearly impact server performance. You should do this only on a development machine.

ObjectCacheTTL REG_DWORD, set to 1. By default it is 30. This is the number of seconds that IIS will keep the file in memory *and locked*. If you reduce this to 1, IIS will remove it from cache in 1 second, and you can then overwrite it. This will work with all but the most heavily loaded servers. If the uploaded file is continually being accessed, then changing this registry parameter will have no effect, since the file will constantly stay in the IIS cache. Note that 1 second is just a suggestion, and different values may be appropriate in other circumstances, depending on your server load and frequency of update of these files. This is a global parameter and will potentially moderately impact overall server performance.

Created : 12/1/2002 12:00:00 AM (last modified : 11/13/2001 11:14:00 AM)
Rate this article!