Express Cache Not Deleting
Document ID: 10272
Synopsis
Express Cache folders and files not are deleting after session end.
More Information
- Browse to the mailsite directory
- Select the express directory
- Right click on the cache directory
- Select security
- add the account IWAN_(machinename) account with full permissions
The IWAM account is responsible for processing the delete action as described by the following information from the Microsoft knowledge base article 277329 that pertains to this problem:
The Application_OnEnd and Session_OnEnd events do not run with the security context of the impersonated user, that is, the user that is determined by the Internet Information Server (IIS) authentication method (Anonymous, Basic, NT Integrated, and so on). Instead, these events run in the security context of the process itself.
For in-process or Low application protection applications, SYSTEM is the identity of the IIS service. Because the SYSTEM user ID is restricted to local computer access, access to network resources fails.
For isolated processes, Medium pooled, or High isolated applications, this is the identity of the Microsoft Transaction Server (MTS) or COM+ package. By default, this identity is IWAM_ So you must add the IWAM user to have rights on the cache directory.