アプリケーションのエラーをログに記録するようにELMAHを設定しようとしています。モジュールを正常に追加しましたが、ErrorLogページ(elmah.axd)の読み込みに問題はありません。ただし、Elmahは、生成しているテスト例外をログに記録していません。
私のweb.configは次のようになります。
<configSections>
<!-- Other stuff -->
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/>
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"/>
</sectionGroup>
</configSections>
<elmah>
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />
</elmah>
<httpHandlers>
<!-- Other stuff -->
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
</httpHandlers>
<httpModules>
<!-- Other stuff -->
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
</httpModules>
テスト例外ページを押すと、黄色の画面http://localhost/elmah.axd/test
が生成されますが、ログエントリは生成されません。
提供されたサンプルとDotNetSlackersのチュートリアルの間では、何も問題はありません。足りないものはありますか?また、 Signalingを介してエラーを生成しようとしましたが、それも機能していません。
私はこれをDotNetNukeに対して実行しているので、現在問題があると考えています。