为应用程序池 'XXXXXXX 提供服务的进程意外终止。进程 ID 是 '7148'。进程退出代码是 '0x80'

一。 现象: 

1   用户访问网站时 得到 

service unavailable 
的错误 

2 服务器上可以看到如下错误 

事件类型: 警告 
事件来源: W3SVC 
事件种类: 无 
事件 ID: 1009 
日期:   2007-5-23 
事件:   8:53:37 
用户:   N/A 
计算机: XXXX 

描述: 
为应用程序池 'XXXXXXX 提供服务的进程意外终止。进程 ID 是 '7148'。进程退出代码是 '0x80'。 

有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。 

原因: 

CAUSE 
Together with each worker process that IIS creates under a separate identity, the system creates a new desktop object by allocating memory from the configured desktop heap. This issue occurs because, when that heap has been exhausted, IIS cannot create more worker processes. Clients then receive the "service unavailable" error message in their Web browsers when they try to visit Web sites that those application pools host. 
独立进程的 内存堆戋消耗完了,IIS不能创建更多的进程工作空间来处理 

1.解决方法: 

警告:需要修改服务器的注册表,请修改前备份相关键值 
add the UseSharedWPDesktop registry key to your computer that is running IIS. This registry key permits all worker processes to run in one shared desktop, regardless of their worker process identities. 

To add the UseSharedWPDesktop registry key: 

   
1. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC 
2. 在Parameters键下新建一个DWORD项,名字为:UseSharedWPDesktop   值为1 重启IIS

===============================================================================

为应用程序池 'DefaultAppPool' 提供服务的进程意外终止。解决办法

错误日志为:

为应用程序池 'DefaultAppPool' 提供服务的进程意外终止。进程 ID 是 '3056'。进程退出代码是 '0xffffffff'。


有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。
-----------------------------------

2.解决方法,给NETWORK SERVICE 加上访问iis服务的权限,具体方法如下:

-----------------------------------

点击“开始”-“控制面板”-“管理工具”-“组件服务”-“计算机”-“我的电脑”-“DCOM”选项, 
选择其下的“IIS ADMIN SERVICE”,右健选择“属性”,找到“安全”,在“启动和激活权限”中编辑“自定义”,添加帐号“NETWORK SERVICE ”, 
给该帐号赋予“本地启动”和“本地激活”的权限,重新启动IIS(点“开始”-“运行”-“CMD”,点确定,然后运行IISRESET), 
之后再访问同一站点,则一切正常。