Content Management Returns Permission Denied Error When Attempting to Approve Document (232008)



The information in this article applies to:

  • Microsoft Site Server 3.0

This article was previously published under Q232008
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SYMPTOMS

The CMSample site receives an error 0x46 (Microsoft\VBScript runtime error) when a user attempts to approve a document. This error only occurs if the user views the document, and then immediately tries to approve the it. If the user waits 60 seconds after viewing the document, it will be approved and the error will not occur.

CAUSE

The problem is caused by Internet Information Server (IIS) caching the file handle after it is viewed by the user. The file handle remains open and locked until IIS removes the handle from the cache. The default is 30 seconds, which results in handles being cached from 30 to 60 seconds. This 30-to-60 second time period is when the error occurs, if the user tries to approve the document after viewing the it.

WORKAROUND

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.


The workaround is to lower the ObjectCacheTTL registry parameter to 5 seconds. This is done by altering the registry value located at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Inetinfo\Parameters\ObjectCacheTTL (REG_DWORD)

Change this value to 5, and then restart your computer.

Note: 5 seconds is the minimum value. Lower values will be forced to a value of 5 seconds. This reduces the time period where the file is locked.


Modification Type:MajorLast Reviewed:6/11/2002
Keywords:kbprb KB232008