简体   繁体   English

使用 ApplicationPoolIdentity 或自定义帐户时,IIS8“HTTP 错误 503 - 服务不可用”,但在使用 NetworkService 时则不然

[英]IIS8 'HTTP Error 503 - Service unavailable' when using ApplicationPoolIdentity or a custom account, but not when using NetworkService

I am trying to deploy an ASP.NET application on Windows Server 2012 (with IIS 8) but I'm getting an http error 503 when using the ApplicationPoolIdentity or a custom account, but not with NetworkService.我正在尝试在 Windows Server 2012(使用 IIS 8)上部署一个 ASP.NET 应用程序,但是在使用 ApplicationPoolIdentity 或自定义帐户时出现 http 错误 503,但没有使用 NetworkService。

In order to narrow down the problem I set up a simple one page html application under the Default Web Site.为了缩小问题的范围,我在默认网站下设置了一个简单的一页 html 应用程序。 This exhibits the same behaviour.这表现出相同的行为。 I've given the custom account and the application pool identity full permissions on the application folder(s).我已授予自定义帐户和应用程序池标识对应用程序文件夹的完全权限。

I've also checked the Windows event log and get this error: the worker process failed to initialize correctly the data is the error.我还检查了 Windows 事件日志并收到此错误:工作进程未能正确初始化数据是错误。 05000780. The application pool is stopped each time I try to browse the site (using applicationpoolidentity). 05000780. 每次我尝试浏览站点时,应用程序池都会停止(使用 applicationpoolidentity)。

Have you made sure that the filesystem location has permissions for the user that you're trying to use?您是否确保文件系统位置对您尝试使用的用户具有权限?

NetworkService often has the correct permissions, but a new account most likely won't. NetworkService 通常具有正确的权限,但新帐户很可能不会。

我将自定义帐户更改为“作为批处理作业登录”,现在一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM