Web サイトおよび Web アプリケーションを確実に分離するには、インターネット インフォメーション サービス (IIS) アプリケーション プールが一意の名前と正しく構成された ID を持つように構成する必要があります。アプリケーション プールの構成中にエラーが発生すると、アプリケーション プールは、そのアプリケーション プールが割り当てられた Web サイトおよび Web アプリケーションをサービスすることができなくなる場合があります。
アプリケーション プールの構成をイベント ログ メッセージの指示に従って修正します。問題が解決されない場合は、ApplicationHost.config ファイルのアクセス許可を確認し、必要なサービスすべてが開始されていることを確認します。場合によっては、WAS を停止し再起動する必要があります。
インターネット インフォメーション サービス (IIS) マネージャーを使用してアプリケーション プールの構成を編集する
アプリケーション プールの構成を編集するには:
[スタート] ボタンをクリックし、[コントロール パネル] をクリックして、[管理ツール] をクリックします。
[インターネット インフォメーション サービス (IIS) マネージャー] を右クリックし、[管理者として実行] を選択します。
[接続] ウィンドウで、サーバー ノードを展開し、[アプリケーション プール] を選択します。
[機能ビュー] で、構成するアプリケーション プールを選択します。
[操作] ウィンドウで、[詳細設定] をクリックします。
アプリケーション プールの構成をイベント ログ メッセージの指示に従って修正します。
[OK] をクリックします。
WAS を停止し、再起動する
WAS を停止し、再起動するには:
注:WAS を停止すると、World Wide Web 発行サービス (W3SVC) などの WAS に依存しているその他のすべてのサービスも停止します。したがって、W3SVC またはその他のサービスも再起動する必要がある場合があります。
コマンド プロンプト ウィンドウを管理者特権で開きます。[スタート] ボタンをクリックし、[すべてのプログラム] をポイントし、[アクセサリ] をクリックし、[コマンド プロンプト] を右クリックして、[管理者として実行] をクリックします。
コマンド プロンプトで、「net stop was /y」と入力します。
コマンド プロンプトで、「net start was」と入力します。
W3SVC を再起動するには、コマンド プロンプトから、「net start w3svc」と入力します。また、WAS が停止したときに停止されたその他のすべてのサービスを開始します。
Target | Microsoft.Windows.InternetInformationServices.10.0.ApplicationPool |
Category | Alert |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.Server.IIS.10.0.WarningAndErrorEventProvider | Default |
Filter | ConditionDetection | Microsoft.Windows.InternetInformationServices.10.0.ApplicationPool.EventFilter | Default |
WA | WriteAction | Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.10.0.WAS.encountered.a.failure.while.setting.the.affinity.mask.of.an.application.pool" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.ApplicationPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.10.0.WarningAndErrorEventProvider">
<LogName>System</LogName>
</DataSource>
</DataSources>
<ConditionDetection ID="Filter" TypeID="Microsoft.Windows.InternetInformationServices.10.0.ApplicationPool.EventFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>5058</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.10.0.WAS.encountered.a.failure.while.setting.the.affinity.mask.of.an.application.pool.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>