非常に多くの UpdatePanels を持ついくつかのレガシー コードを操作します。UpdatePanels への一部のポストバックがタイムアウトする (デフォルトの 90 秒の制限を超える) 問題が発生しています。これがいつ発生するかを知りたいです。
現在、未処理のすべての例外を Global.asax.cs::Application_Error に記録しています。更新パネルのポストバックで手動でエラーをスローすると、これは問題なくキャプチャされます。Thread.Sleep(100 * 1000) をドロップすると、Application_Error には何も表示されませんが、クライアントでは次のように表示されます。
Uncaught Sys.WebForms.PageRequestManagerServerErrorException:
Sys.WebForms.PageRequestManagerServerErrorException:
An unknown error occurred while processing the request on the server.
The status code returned from the server was: 500
私が知る限り、アプリケーション自体ではなく、サーバー レイヤーがエラーをスローしているため、Application_Error にヒットするものは何もありません。あれは正しいですか?
また、クライアントでこのエラーに気づき、別の POST 操作を実行してログに記録する以外に、このエラーを実際にキャプチャ/ログに記録するためのオプションはありますか?