Event Type: Error
Event Source: Active Server Pages
Event Category: None
Event ID: 5
Date:  14/05/2004
Time:  4:32:55 AM
User:  N/A
Computer: 001DC001
Description:
Error: The Template Persistent Cache initialization failed for Application Pool ‘DefaultAppPool’ because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes..
 
Try these fixes:
 
A. Add the NT AUTHORITY\NETWORK SERVICE account to
C:\WINDOWS\Help\iisHelp\common with “Read and Execute,” “List Folder Contents” and “Read”.
 
B. Add the NT AUTHORITY\NETWORK SERVICE account to
C:\WINDOWS\system32\inetsrv\ASP Compiled Templates with Full Control.
 
C. Add the NT AUTHORITY\NETWORK SERVICE account to C:\WINDOWS\IIS Temporary Compressed Files with Full Control.
 
Thanks David S. for the suggestion! 🙂

 

18 Responses to Getting an “Event ID 5” error on “DefaultAppPool”?

  1. Jon Griffith says:

    I can’t locate the NT AUTHORITY\NETWORK SERVICE in Active Directory. Please be more specific. Perhaps I’m just an idiot.

    I have looked high and low. I don’t understand why I would be having this problem on the server when it’s a new installation. I have two servers, both are AD servers, one being a backup.

    Nothing was wrong until this morning when I found this lame error annoying the hell out of me. All solutions point to the same thing posted here but I cannot locate any NT AUTHORITY\NETWORK SERVICE group or user.

    Mayday!

  2. Paul DeHaan says:

    When you go to the security of the above directories, click add, then type Network for the user/group name and then Enter. This should show you a couple of names, one being "Network Service." Select and use it as stated above.

    Paul

  3. Evan Camilleri says:

    I do not find ‘NT AUTHORITY\NETWORK SERVICE’. If i type network only ‘NETWORK’ comes!!!

    🙁

    Evan

  4. Uwe says:

    Type NETZWERKDIENST

  5. Jason H says:

    Under Windows Server 2003 the NETWORK SERVICE user is under the IIS Worker Process Group (IIS_WPG), if IIS_WPG has the above permissions you need to look elsewhere for resolution, much like I’m having to now >:-(

  6. Boris B says:

    The problem is that cache directory does not have write access by default for the IWAM_XXXX user.

    Here is how to fix this.

    1 – Open IIS Manager on the server

    2 – Expand "Application Pools"

    3 – Right Click on the pool that Event ID is complaing about

    4 – Click on "Identity" tab and write down the user name

    5 – If you’re running AD prepend the domain name to the username

    6 – Edit security of C:\WINDOWS\system32\inetsrv\ASP Compiled Templates to add the user from step 4 (if running on AD make sure to add domain name)

    7 – Stop and Start the pool.

    The pool’s create PIDXXXXX.ID direcotry for caches, that is why they need write access.

    Its purely a cosmetic fix because pools would work without cache anyway.

  7. Eric says:

    It worked only after assigning Modify and create rights to.

  8. Gasper Markic says:

    It worked for me too … thanks

  9. Deepesh shah says:

    I tried all of the above and still get

    Error: The Template Persistent Cache initialization failed for Application Pool ‘DefaultAppPool’ because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes..

    i am running windows server 2003 and that box is serviing as a file server nothing else we have a seprate box for AD & Exchange.

    Please help

    Thanks in advance

  10. rocket says:

    ple solve me problem

  11. Miha says:

    Have you try to change authentication and acces check control on web?

    Disable anonymous access.

  12. ToGeeksInAPod says:

    This happened to me and I was able to resolve it…

    If getting this after installing SUS or while browsing pages, this is probably your solution:

    http://support.microsoft.com/?kbid=842493

    If getting this after using dcpromo, here’s your solution:

    http://support.microsoft.com/?kbid=332097

  13. Steven says:

    Thanks to the original poster!! this solved my problems =)

  14. Brown says:

    This corrected my issue

    Thanks guys for the help!

  15. Randy Walker says:

    Thanks for the post! It seemed to have fixed my problems.

  16. Irving Popovetsky says:

    This solved my problems as well on a Windows 2003 R2 Domain Controller running IIS. Thanks!

  17. Dan says:

    Nice one! fixed my problem!