IIS 7 and Above
Could not create a Disk Cache Sub-directory for the Application Pool...
Last post Aug 10, 2010 10:34 AM by awoodier
Aug 10, 2010 10:15 AM|awoodier|LINK
I've migrated a website from IIS6 on Server 2003 to IIS7 on Server 2008 R2 using Webdeploy. The site works and runs just fine, however after the 20 minute timeout occurs and any user visits the site again, i'm getting the following error in the Application
Source : Active Server Pages
Event ID: 5
Error: The Template Persistent Cache initialization failed for Application Pool" AppPoolName: because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes.
The only solutions to this problem i've found all relate to Server 2003. More importantly though these solutions reference three key directories where the permissions should be changed, as per this KB here:
The problem is these directories simply dont exist on my 2008 R2 server. Not one of them!
I'm now lost as i've exhausted Google completely. Anyone got any ideas?
Aug 10, 2010 10:34 AM|awoodier|LINK
I've sorted it (strange, i only just posted this original thread after nearly giving up!) I found this:
Which led me here:
In my case the path was %windir%\system32\inetsrv\ASP Compiled Templates. This directory didn't exist, so i created it and gave NETWORK SERVICE permissions as per this:
After restarting the IIS service the error no longer appears.