我在新的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..?
谷歌build议,这是我在“身份”选项卡中设置的应用程序池的用户。 最常见的问题是:
我已经尝试并重试这两个(并重新启动IIS服务),似乎没有任何修复它。 还有什么我应该找的东西。
FWIW,身份用户是一个域(不是本地)用户。 同样的设置在另一个(假定是相同的)服务器/设置上工作正常。
感谢MattB, 这个Stack Overflow线程最终使我得到了正确的答案(对我来说)。
我运行了以下命令(从C:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727):
aspnet_regiis.exe -GA domain\username
…其中domain \ username是我用于应用程序池标识的用户的域限定用户名(以标准Windows格式)。
从aspnet_regiis帮助中,-GA选项可以:
Grant the specified user or group access to the IIS metabase and other directories used by ASP.NET.
我不知道为什么这个服务器没有自动完成(因为我以前从来没有这样做过)。
在黑暗中拍摄,但也许你为应用程序池的身份configuration的域帐户被locking?
尝试给“login即服务”权限的帐户。 这是从堆栈溢出非常类似的问题。
如果您正在使用IIS6和Metabase Explorer(在资源工具包中 ),则可以执行以下操作:
现在看看WAMUserName和WAMUserPass。 您可以尝试以该用户的身份运行进程:
runas /user:myuser cmd.exe
如果这不起作用,你应该更接近答案。