モジュールの登録エラーが検出されました (RegisterModule エントリ ポイントが見つかりません)

Microsoft.Windows.InternetInformationServices.6.2.Module.registration.error.detected.failed.to.find.RegisterModule.entrypoint (Rule)

Knowledge Base article:

概要

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

解決方法

モジュールの登録を修正する

IIS8 環境では、モジュールは、サーバー イベントにサブスクライブできる論理エンティティです。Web サーバーは、サーバーの起動時にモジュールを読み込むように構成されています。起動中、サーバーは、モジュールに関係するイベントに対して登録することをモジュールに要求します。必要なイベントに対するモジュールの登録は、モジュールの実装時に行われます。モジュールに、サーバーがモジュールを登録するためにアクセスする有効なエントリ ポイントがないと、登録は失敗します。

この問題を解決するには、次の手順を実行します:

ApplicationHost.config ファイルのバックアップを作成する

ApplicationHost.config ファイルのバックアップを作成するには:

指定したバックアップ名を持つディレクトリが、%Windir%\system32\inetsrv\backup ディレクトリの下に作成されます。名前を指定しない場合は、Appcmd によって、現在の日時が付いたディレクトリ名が自動的に生成されます。

構成からモジュールを削除する

構成からモジュールを削除するには:

globalModules セクションの詳細については、 IIS 8: globalModules の add 要素 (IIS 設定スキーマ) に関するページを参照してください。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WebServer
CategoryAlert
EnabledTrue
Event_ID2295
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.6.2.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.Module.registration.error.detected.failed.to.find.RegisterModule.entrypoint" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.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>2295</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<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.Module.registration.error.detected.failed.to.find.RegisterModule.entrypoint.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>