IIS 应用程序池标识问题

Cra*_*ker 4 iis application-pools

我在新的 IIS 服务器上遇到身份池问题。

这是我的事件查看器文本:

Event Type: Warning
Event Source:   W3SVC
Event Category: None
Event ID:   1021
Date:       6/12/2009
Time:       1:44:50 PM
User:       N/A
Computer:   <scrubbed>
Description:
The identity of application pool, '<scrubbed>' is invalid.  If it remains invalid when the first request for the application pool is processed, the application pool will be disabled.  The data field contains the error number.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 69 05 07 80               i..?    
Run Code Online (Sandbox Code Playgroud)

Google 建议这与我在“身份”选项卡中设置的应用程序池的用户有关。最常见的问题是:

  1. 设置错误的密码
  2. 不将用户添加到 IIS_WPG 组

我已经尝试并重试了这两个(并重新启动了 IIS 服务),但似乎没有任何解决方法。我还应该寻找什么其他东西。

FWIW,身份用户是域(非本地)用户。同样的设置在另一个(假设相同的)服务器/设置上运行良好。

Cra*_*ker 6

感谢 MattB,这个 Stack Overflow 线程最终让我找到了正确的答案(对我来说)。

我运行了以下命令(来自 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727):

aspnet_regiis.exe -GA domain\username
Run Code Online (Sandbox Code Playgroud)

...其中 domain\username 是我用于应用程序池标识的用户的域限定用户名(采用标准 Windows 格式)。

在 aspnet_regiis 帮助中, -GA 选项执行以下操作:

Grant the specified user or group access to the IIS
metabase and other directories used by ASP.NET.
Run Code Online (Sandbox Code Playgroud)

我不知道为什么这不是在这台服务器上自动完成的(因为我过去从来没有这样做过)。