Веб-сайты и веб-приложения зависят от доступности пулов приложений служб (IIS). Пулы приложений IIS в свою очередь зависят от службы активации Windows. При отключении или возникновении ошибок WAS во время запуска или остановки пула приложений веб-сайты и веб-приложения могут быть недоступны.
Для решения этой проблемы требуется устранить проблемы в разделе globalModules файла ApplicationHost.Config.
Конфигурация раздела globalModules в файле ApplicationHost.config:
Откройте окно командной строки с повышенными правами. Нажмите кнопку Пуск, наведите указатель на пункт Все программы, выберите пункт Стандартные, щелкните правой кнопкой мыши пункт Командная строка и выберите Запуск от имени администратора.
Введите cd %Windir%\system32\inetsrv\.
Введите appcmd add backup backupName, чтобы создать резервную копию файла ApplicationHost.config. Будет создан каталог с именем резервной копии, которое вы укажете, в каталоге %Windir%\system32\inetsrv\backup. Если вы не укажете имя, appcmd создаст имя каталога автоматически, используя текущую дату и время.
Введите cd %Windir%\system32\inetsrv\config
Введите notepad ApplicationHost.config
В блокноте произведите поиск раздела globalModules в разделе system.webServer.
Воспользуйтесь статьей IIS 8: элемент globalModules (схема настроек IIS) как руководством для исправления ошибки конфигурации раздела globalModules в файле ApplicationHost.config.
Сохраните и закройте файл ApplicationHost.config.
Target | Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool |
Category | Alert |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider | Default |
Filter | ConditionDetection | Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter | Default |
WA | WriteAction | Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.Worker.process.for.application.pool.encountered.an.error.while.trying.to.read.global.module.configuration" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider">
<LogName>Application</LogName>
</DataSource>
</DataSources>
<ConditionDetection ID="Filter" TypeID="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>2297</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC-WP</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.6.2.Worker.process.for.application.pool.encountered.an.error.while.trying.to.read.global.module.configuration.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>