Application_Error は統合モードでは機能しませんが、クラス モードでは機能します。統合モードとクラス モードの両方を使用して、リクエストをエラー ページに転送します。両方のモードをサポートするには、HTTP モジュールを使用する必要がありますか?
protected void Application_Error(object sender, EventArgs e)
{
if (Context != null && Context.IsCustomErrorEnabled)
{
Server.Transfer("~/Error.aspx", false);
}
}