Windows Server 2003 で実行されている IIS 6/ASP.NET 2 アプリケーションでヘルス監視をセットアップしようとしています。
最初のステップとして、(C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config で指定されているように) デフォルト イベントに加えて、アプリケーション ライフタイム イベントを取得します。
Windows 7 で NetworkService として IIS 7 を実行している私の開発マシンでは、正常に動作します。
IIS 6 マシンでは、既定のイベントは引き続きイベント ログに記録されますが、追加のライフ タイム イベントは記録されません。さらに、設定ミスに関するイベントがログに記録されたり表示されたりすることはありません。また、イベント ログの代わりに SimpleMailProvider を使用しても、結果は生成されません。
私の設定を無視しているようです。私は多くのバリエーションの設定を試しました - すべてのグローバルヘルスモニタリング設定をアプリケーションの web.config にコピーしましたが、うまくいきませんでした。
前もって感謝します!
web.config に追加した設定は次のとおりです。
<healthMonitoring enabled="true">
<rules>
<clear />
<add name="All Errors Default" eventName="All Errors" provider="EventLogProvider" profile="Critical" />
<add name="Application Lifetime Events Default" eventName="Application Lifetime Events" provider="EventLogProvider" profile="Critical" />
<add name="Failure Audits Default" eventName="Failure Audits" provider="EventLogProvider" profile="Critical" />
</rules>
</healthMonitoring>