グローバル モジュールの一覧が空です

Microsoft.Windows.InternetInformationServices.10.0.The.Global.Modules.list.is.empty (Rule)

Knowledge Base article:

概要

インターネット インフォメーション サービス (IIS) 9 を使用すると、開発者は Web サーバーへの要求を処理するネイティブおよびマネージ コード モジュールを容易に構成できます。ワーカー プロセスがこれらのモジュールを読み込むには、これらのモジュールを正しく構成する必要があります。モジュールを正しく構成するには、モジュールに一意の名前と有効な種類またはパスを指定する必要があります。ASP.NETアプリケーションまたはマネージ ハンドラーへの要求に対してのみマネージ モジュールを呼び出すようにするかどうかを、マネージ モジュールで指定できます。指定すると、この設定によりパフォーマンスが最適化されます。

解決方法

グローバル モジュールを定義する

IIS が要求を正常に処理できるようにするために、ApplicationHost.config ファイルの globalModules セクションには、定義されたグローバル モジュールを少なくとも 1 つ含める必要があります。モジュール定義には、モジュールの一意の名前属性と、グローバル モジュールを含む .dll ファイルのファイル システムのパスを指定するイメージ属性が必要です。

グローバル モジュール定義を ApplicationHost.config に追加する

メモ帳を使用してグローバル モジュール定義を ApplicationHost.config に追加するには:

グローバル モジュール定義の例

<globalModules>

<add name="AccessCheckModule"

image="D:\Windows\system32\inetsrv\checkacc.dll"

preCondition=""

/>

</globalModules>

globalModules セクションの詳細については、「 IIS 10: globalModules の add 要素 (IIS 設定スキーマ) (英語の場合があります)」を参照してください。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.WebServer
CategoryAlert
EnabledTrue
Event_ID2298
Event SourceMicrosoft-Windows-IIS-W3SVC-WP
Alert GenerateFalse
RemotableTrue
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
WA WriteAction Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.10.0.The.Global.Modules.list.is.empty" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.WebServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<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>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>2298</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<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.The.Global.Modules.list.is.empty.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>