Internal Server Error: Could not create a Disk Cache Sub-directory for the Application Pool

Refers to:

  • Plesk 12.0 for Windows

Created:

2016-11-16 13:06:09 UTC

Modified:

2017-02-21 11:02:06 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Internal Server Error: Could not create a Disk Cache Sub-directory for the Application Pool

Symptoms

ASP wesite shows Internal Server Error .

In Event Viewer's Application Logs the following error can be found:

The Template Persistent Cache initialization failed for Application Pool 'domain.tld(domain)(2.0)(pool)' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes.

Cause

Missing system folders or incorrect permissions.

Resolution

  1. Apply a solution from Microsoft solution center
  2. Check the path for ASP cache:
    %windir%\\system32\\inetsrv\\appcmd list config -section:system.webServer/asp

    <system.webServer>
    <asp>
    <session />
    <comPlus />
    <cache diskTemplateCacheDirectory="%SystemDrive%\\inetpub\ emp\\ASP Compiled Templates" />
    <limits />
    </asp>
    </system.webServer>
    1. Ensure the path from above exists:

      mkdir "%SystemDrive%\inetpub\ emp\ASP Compiled Templates"

      A subdirectory or file C:\inetpub\ emp\ASP Compiled Templates already exists.4. Ensure the permissions include NETWORK SERVICE :

      icacls "%SystemDrive%\inetpub\ emp\ASP Compiled Templates" /grant "NETWORK SERVICE:(OI)(CI)(M)"

      processed file: C:\inetpub\ emp\ASP Compiled TemplatesSuccessfully processed 1 files; Failed processing 0 files5. Restart IIS service:

      iisreset

Have more questions? Submit a request
Please sign in to leave a comment.