posted on Wednesday, June 09, 2004 6:53 AM by bradley

Getting an "Event ID 5" error on "DefaultAppPool"?

 
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! :-)

Comments

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Wednesday, June 30, 2004 2:45 PM by Jon Griffith
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!

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Monday, July 05, 2004 1:52 AM by Paul DeHaan
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

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Tuesday, July 20, 2004 4:16 AM by Evan Camilleri
I do not find 'NT AUTHORITY\NETWORK SERVICE'. If i type network only 'NETWORK' comes!!!

:(

Evan

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Thursday, August 05, 2004 3:59 AM by Uwe
Type NETZWERKDIENST

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Tuesday, September 14, 2004 3:27 AM by Jason H
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 >:-(

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Wednesday, November 24, 2004 5:14 PM by Boris B
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.

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Monday, December 13, 2004 6:19 AM by Eric
It worked only after assigning Modify and create rights to.

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Sunday, February 20, 2005 11:51 PM by Gasper Markic
It worked for me too ... thanks

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Thursday, March 17, 2005 3:09 AM by Deepesh shah
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

# event id 26

Thursday, March 17, 2005 7:09 PM by rocket
ple solve me problem

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Thursday, March 17, 2005 7:16 PM by Susan
Have you looked at www.eventid.net?

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Monday, March 21, 2005 6:36 AM by Miha
Have you try to change authentication and acces check control on web?

Disable anonymous access.

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Tuesday, April 05, 2005 11:10 AM by ToGeeksInAPod
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

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Wednesday, April 06, 2005 5:40 PM by Steven
Thanks to the original poster!! this solved my problems =)

# re: Getting an "Event ID 5" error on "DefaultAppPool"?

Sunday, September 04, 2005 3:25 PM by Brown
This corrected my issue

Thanks guys for the help!