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的标准配置。