0
此問題涉及在ASP.Net應用程序中使用ELMAH。 我在我的web.config中有以下內容。當customErrors mode ='Off'時ELMAH日誌記錄,並且在Application_Error事件中清除錯誤
<customErrors mode="Off" ">
</customErrors>
此外,無論何時發生未處理的錯誤,我都會在Application_Error事件中清除它,如下面的代碼所示。
protected void Application_Error(object sender, EventArgs e)
{
Server.ClearError();
Response.Redirect("~/errorpages/error.aspx");
}
我的問題:請問ELMAH記錄並在這種情況下,通過電子郵件發送的錯誤?我在web.config文件中有ELMAH的標準配置。