IIS应用程序池和WAS将自动停止,事件ID为5189 [英] IIS App Pool and WAS stop automatically with with event id 5189

查看:2233
本文介绍了IIS应用程序池和WAS将自动停止,事件ID为5189的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动网站时,应用程序池会自动停止并出现一些错误。尝试关闭并启用IIS和WAS功能。没有帮助。 applicationhost.config文件正确且没有损坏

When starting the website, app pool stops automatically with some errors. Tried turning IIS and WAS features off and enabled. Didn't help. applicationhost.config file is proper and not corrupt

以下是事件查看器中的错误

Below are the errors from event viewer

工作进程应用程序池'testpool'遇到错误'无法读取配置文件
'尝试从文件'\?\'读取配置数据,行号为'0'。数据字段包含错误代码。

The worker process for application pool 'testpool' encountered an error 'Cannot read configuration file ' trying to read configuration data from file '\?\', line number '0'. The data field contains the error code.

Windows进程激活服务无法为应用程序池testpool生成应用程序池配置文件。错误类型为5。要解决此问题,请确保applicationhost.config文件正确无误并重新进行上次进行的配置更改。数据字段包含错误编号。

The Windows Process Activation Service failed to generate an application pool config file for application pool 'testpool'. The error type is '5'. To resolve this issue, please ensure that the applicationhost.config file is correct and recommit the last configuration changes made. The data field contains the error number.

推荐答案

管理以查找根本原因。

启动网站时尝试运行进程监视器(procmon.exe)。 svchost.exe进程正在尝试使用应用程序池名称在以下位置(C:\inetpub \ temp \ appPools)创建一个文件夹。

Tried running process monitor (procmon.exe) when starting the website. svchost.exe process is trying to create a folder in following location (C:\inetpub\temp\appPools) with app pools name.

并且不知何故有名称与app pool相同的文件夹快捷方式。 WAS进程正在尝试在启动应用程序池时创建该文件夹。我现在已经清除了该文件夹并重试了。它奏效了!

And somehow there was a folder shortcut with name same as app pool. WAS process is trying to create the folder when starting the app pool. I have now cleared that folder and retried. It worked!

这篇关于IIS应用程序池和WAS将自动停止,事件ID为5189的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆