J
JP
I have a C# program that uses error handling via the Application_Error()
method in the global.asax file. The code in this method alerts me to any
unhandled exception in the program.
However, lately the program has been receiving "Request Timed Out" errors,
but it just shows the user the ugly old framework error screen rather then
processing the error, notifying me of the error, and display a beautiful
error screen to the user.
The problem turned out to be a slow SQL statement that took longer then the
httpRequest was willing to wait (I think). YES, I know you can change the
timeout setting for httpRequest inside the web.config. But the point is that
the code I have to process unhandled exceptions is not firing for THIS error.
Why and what to do to fix it so that it does process the error???
method in the global.asax file. The code in this method alerts me to any
unhandled exception in the program.
However, lately the program has been receiving "Request Timed Out" errors,
but it just shows the user the ugly old framework error screen rather then
processing the error, notifying me of the error, and display a beautiful
error screen to the user.
The problem turned out to be a slow SQL statement that took longer then the
httpRequest was willing to wait (I think). YES, I know you can change the
timeout setting for httpRequest inside the web.config. But the point is that
the code I have to process unhandled exceptions is not firing for THIS error.
Why and what to do to fix it so that it does process the error???