[英]Service unavailable message in IIS
I have created a sample ASP.NET website and hosted it in IIS 6.0 . 我创建了一个示例ASP.NET网站,并将其托管在IIS 6.0中。 It is working fine , if the identity of the defalut app pool is "local system". 如果默认应用程序池的标识为“本地系统”,则表示一切正常。 But when i changed the identity with some other configurable user id then it is showing as " Service Unavailable ". 但是,当我使用其他一些可配置的用户ID更改身份时,它显示为“ Service Unavailable ”。
The following message is found in the event viewver. 在事件查看器中找到以下消息。
"The identity of application pool 'DefaultAppPool' is invalid, so the World Wide Web Publishing Service can not create a worker process to serve the application pool. Therefore, the application pool has been disabled." “应用程序池'DefaultAppPool'的标识无效,因此World Wide Web Publishing服务无法创建为该应用程序池提供服务的辅助进程。因此,该应用程序池已被禁用。”
Either the credentials provided for the user is not valid, or the user does not have the needed permissions. 为用户提供的凭据无效,或者用户没有所需的权限。
I believe there is a security group on the machine called IIS_WPG that is created when Asp.net is installed, add the user to this group, it should give them the needed permissions. 我相信在安装Asp.net时会在计算机上创建一个名为IIS_WPG的安全组,将用户添加到该组中,它应该为他们提供所需的权限。
检查在IIS上分配站点的应用程序池,它可能已停止。
Message is self-explanatory. 消息是不言自明的。 The selected user id isn't valid - probably due to insufficient privaledges to run the service. 所选的用户ID无效-可能是由于权限不足以运行该服务。
The user identity you use needs to have fairly significant rights to operate. 您使用的用户身份需要具有相当重要的操作权限。 At a minimum the user needs to have read/execute permission on the root directory of the folder. 至少,用户需要对文件夹的根目录具有读取/执行权限。 This user should also have read/write/execute permission on the Temporary Asp.Net Files folder located within the %SystemRoot%/Microsoft.Net/Framework/ folder. 此用户还应该对%SystemRoot%/ Microsoft.Net / Framework /文件夹中的Temporary Asp.Net Files文件夹具有读/写/执行权限。
FYI, 仅供参考
In a development environment you can use the default app pool to create your web applications. 在开发环境中,您可以使用默认应用程序池来创建Web应用程序。
In production environment you want to use lusrmgr.msc (Server 2008/R2/7 Ultimate and Pro) to create new users (and their credentials) on the machine and assign the users to the right group (IIS_IUSRS). 在生产环境中,您要使用lusrmgr.msc(Server 2008 / R2 / 7 Ultimate和Pro)在计算机上创建新用户(及其凭据),并将用户分配给正确的组(IIS_IUSRS)。
Also once you have created the user, you will want to give it access to your data source back-end (if sql is running on the same machine and using windows authentication to access SQL). 同样,一旦创建了用户,就将要授予它对数据源后端的访问权限(如果sql在同一台计算机上运行,并且使用Windows身份验证来访问SQL)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.