ELMAHに私たちのアプリケーションのエラーを記録するように設定しようとしています。モジュールを正常に追加しましたが、ErrorLogページ(elmah.axd)をロードする際に問題はありません。しかし、Elmahは私が生成しているテストの例外を記録していません。ASP.NETのElmah設定に関するヘルプ
私のweb.configファイルには、次のようになります。テストの例外ページhttp://localhost/elmah.axd/test
を叩く
<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>
はyellow screenを生成し、ないログエントリ。
付属のサンプルとDotNetSlackersのチュートリアルの間に間違ったことはありません。私は行方不明のものがありますか?私もSignaling経由でエラーを生成しようとしましたが、それもうまくいきません。
私はこれをDotNetNukeに対して実行しています。だから私は現在、問題があると考えています。
美しい!それがトリックでした。 –
dnn 5.04でうまくいった – NotMe