gpt4 book ai didi

iis - 应用程序池不会运行

转载 作者:行者123 更新时间:2023-12-04 15:35:08 28 4
gpt4 key购买 nike

我的服务层中有两台服务器位于负载均衡器后面。它们都应该是相同的 - IIS 设置相同,AppFabric(保持两个服务预热),在服务帐户或应用程序池标识下运行的应用程序池。在一台服务器上,一切正常。在另一台服务器上,我的三个应用程序池(AppFabric 正在预热的两个,在服务帐户下,一个只是标准应用程序池,未对默认设置进行任何更改)几乎在我启动它们后立即停止运行(有时在第一次请求时)。

每次尝试启动应用程序池之一时,应用程序日志中都会出现以下五个错误:

There was an error during processing of the managed application service auto-start for configuration path: 'MACHINE/WEBROOT/APPHOST/Site/App'. The error message returned is: ''. The worker process will be marked unhealthy and be shutdown. The data field contains the error code.



引用的错误代码是 80070005 .

这实际上是针对同一个站点/应用程序,而不管正在启动的应用程序池(尽管在重新创建应用程序池后它可能会发生变化)。

在系统日志中,我在错误之前收到以下警告五次( Application pool 'AppPool' is being automatically disabled due to a series of failures in the process(es) serving that application pool. ):

A process serving application pool 'AppPool' reported a failure during application preloading or service loading. The process id was '2396'. Please ensure that all application preload or service settings in the application pool are configured properly. The data field contains the error number.



引用的错误代码是 80004005 .

这里的 AppPool 是正在启动的。

我试过重新创造;我试过卸载 AppFabric(但我们需要它,所以重新安装了,但仍然不行)。我没有想法了。有什么建议?

编辑 :我尝试从工作服务器复制 applicationHost.config,但这也不起作用..

编辑2 :应用程序池之一在真实用户帐户下运行时有效,但在 ApplicationPoolIdentity 下运行时无效....

(此外,我们遇到了网站在 2.0 下运行而应用程序在 4.0 下运行的问题。这可能已经解决了作为服务帐户运行的问题。)

最佳答案

我只是与这个相同的问题搏斗了几个小时,发现了另一个罪魁祸首。

我在最近的一次提交中向我的 Web.config 添加了一个新的配置部分。我还将此部分添加到 Puppet 用于在部署点生成自定义 Web.config 的单独 ERB 文件中。在这个模板文件中,我添加了新的部分,但忘记在 <configSections> 中包含它的声明。 .

一旦我将声明添加到模板中,我们应用程序的测试虚拟机就能够再次启动并且这个错误消失了。

关于iis - 应用程序池不会运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16307214/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com