【问题标题】:'DefaultAppPool' is being automatically disabled due to a series of failures由于一系列故障,“DefaultAppPool”被自动禁用
【发布时间】:2012-11-19 17:50:11
【问题描述】:

在这个问题上遇到了困难。不知道怎么回事,但我的 ApplicationPoolIdentity 坏了。

目前我正在使用 Visual Studio 2012 在 Windows 8 上运行 IIS 8。当尝试从 Visual Studio 调试应用程序时,或者只是在浏览器中导航到该站点时,我收到以下错误记录和 503 错误。

Application pool 'DefaultAppPool' is being automatically disabled due to a series of failures in the process(es) serving that application pool.

如果我查看应用程序错误日志,我会从 User Profile Service 中发现以下错误。

Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly. 

 DETAIL - The system cannot find the path specified.

在查看详细信息后,我发现 用户配置文件服务 正在尝试使用 Id 加载配置文件

S-1-5-82-3006700770-424185619-1745488364-794895919-4004696415

现在我打开注册表尝试查找具有该 UserId 的配置文件。但是,个人资料列表中没有任何帮助。

所以再深入研究一下,我发现这个问题可以通过任一方法解决

A) 将应用程序池的Load User Profile设置为false。

B) 为应用程序池使用不同的帐户。

C) 修复帐户。

看到这是如何内置帐户,我宁愿解决问题而不是修复症状。

我尝试过的

  • aspnet_regiis -i
  • 从 Windows 中删除 IIS 并重新安装。
  • 尝试按照指南here,但我不知道帐户密码:P

我的直觉

不知何故,ApplicationPoolIdentity 搞砸了。内置帐户是否有任何物理文件夹?我知道网络和本地服务配置文件物理目录存在于 C:\Windows\ServiceProfiles\。可以重新创建 ApplicationPoolIdentity 配置文件吗?或者我对真正的问题是什么?

【问题讨论】:

    标签: application-pool user-profile iis-8 applicationpoolidentity


    【解决方案1】:

    C) 这是我修复帐户的方法 进入注册表键

    HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

    有一个名为“默认”的设置。您必须确保数据值指向驱动器上的现有目录。 默认情况下,它包含“%SystemDrive%\Users\Default”。在我的公司中,默认更改为自定义配置文件。不知何故,有人删除了该用户个人资料。因此,当 defaultAppPool 用户尝试为自己创建一个帐户时,它无法这样做,因为 windows 无法为他提供默认用户配置文件。

    您还可以在查看应用程序文件夹下的事件查看器时诊断此错误。您将收到该类型的消息:

    Windows 找不到本地配置文件,正在使用 临时档案。您对此配置文件所做的更改将在以下情况下丢失 你注销。

    【讨论】:

    • 感谢您的反馈。
    猜你喜欢
    • 2012-06-16
    • 2020-11-21
    • 2015-08-06
    • 2019-10-08
    • 2014-10-13
    • 2016-03-12
    • 2013-01-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多