[转]应用程序池模板永久性缓存初始化失败的解决方法
来源:互联网 发布:北京软件定制开发服务 编辑:程序博客网 时间:2024/05/06 03:15
• %systemroot%Help/IISHelp/Common IIS_WPG和NETWORK SERVICE 读取和运行权限
• %systemroot%System32/Inetsrv/ASP Compiled Templates 两者完全控制权限
• %systemroot%IIS Temporary Compressed Files 两者完全控制权限
自从公司服务器升级为域控制模式以后,发现IIS上运行一些ASP的应用程序时,会时不时出现类似下面这样的错误信息:
错误: 应用程序池 'DefaultAppPool' 的模板永久性缓存初始化失败,这是由下列错误所导致: 无法创建应用程序池的磁盘缓存子目录。数据可能包含额外的错误代码。
经查询相关资料后发现这个错误是IIS运行权限的问题,处理方法是更改IIS运行时用的两个帐户:IIS_WPG 和 NETWORK SERVICE 对应用程序池用到的相关目录的NTFS权限,将IIS_WPG帐户设置为读取与执行、列出文件夹目录、读取,而NETWORK SERVICE则需要完全控制权限。 (此话不完全正确)
要配置的相关目录有以下几个:
• %systemroot%Help/IISHelp/Common
• %systemroot%System32/Inetsrv/ASP Compiled Templates
• %systemroot%IIS Temporary Compressed Files
附:%systemroot%通常指C:/Windows,如果你是从Win 2K Server升级到2003,则是C:Winnt。如果你自定义了系统目录,是根据实际情况调整这个变量的值。
完成后,重启一下IIS Admin服务,即可解决此问题。
• %systemroot%System32/Inetsrv/ASP Compiled Templates 两者完全控制权限
• %systemroot%IIS Temporary Compressed Files 两者完全控制权限
经查询相关资料后发现这个错误是IIS运行权限的问题,处理方法是更改IIS运行时用的两个帐户:IIS_WPG 和 NETWORK SERVICE 对应用程序池用到的相关目录的NTFS权限,将IIS_WPG帐户设置为读取与执行、列出文件夹目录、读取,而NETWORK SERVICE则需要完全控制权限。 (此话不完全正确)
要配置的相关目录有以下几个:
• %systemroot%Help/IISHelp/Common
• %systemroot%System32/Inetsrv/ASP Compiled Templates
• %systemroot%IIS Temporary Compressed Files
附:%systemroot%通常指C:/Windows,如果你是从Win 2K Server升级到2003,则是C:Winnt。如果你自定义了系统目录,是根据实际情况调整这个变量的值。
完成后,重启一下IIS Admin服务,即可解决此问题。
参考二:
错误: 应用程序池 'DefaultAppPool' 的模板永久性缓存初始化失败,这是由下列错误所导致: 无法创建应用程序池的磁盘缓存子目录。数据可能包含额外的错误代码。解决方法(详细步骤):http://support.microsoft.com/?kbid=842493
You receive a "Service Unavailable" error message when you browse an IIS 6.0 Web page on a Windows Server 2003-based domain controller
SYMPTOMS
Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 1009
Date: Date
Time: Time
User: N/A
Computer: Computer_Name
Description:
A process serving application pool 'Application_Pool_Name' terminated unexpectedly. The process id was '5288'. The process exit code was '0xffffffff'.
For more information, see Help and Support Center at
Event Type: Message
Event Source: Active Server Pages
Event Category: None
Event ID: 5
Date: Date
Time: Time
User: N/A
Computer: Computer_Name
Description:
Error: The Template Persistent Cache initialization failed for Application Pool 'Application_Pool_Name' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes.
For more information, see Help and Support Center at
CAUSE
RESOLUTION
To set permissions on the folders for the IIS_WPG group, follow these steps: 1.Start Windows Explorer, and then open the following folder: