https://blog.miniasp.com/post/2013/03/12/ASPNET-MVC-4-and-ELMAH-Integration
<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" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
上面區塊宣告的要加入Web.config否則解析xml會認不得<elmah>
錯誤碼 | 0x80070032 |
---|
設定錯誤 | 無法讀取設定區段 'elmah',因為它缺少區段宣告 |
---|
設定來源:
125: </system.data>
126: <elmah>
127: <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data/Elmah.Errors" />
沒有留言:
張貼留言