views:

74

answers:

0

Could someone share the technique to get a custom 500 error page displaying in ASP.NET 3.5 WebForms with System.Web.Routing hooked in.

I was able to get a 400 Error Page working by creating a catch-all route but don't understand the technique for showing a custom 500 error page. I would like if the URL remained for the page that blew up (i.e., like Server.Transfer).

A couple techniques I tried were configuring web.config customErrors section along with custom code in Application_Error. Both of these techniques are pretty straight forward without Routing.

I know this is a more vague question than I would typically ask but hoping someone has done this before and can point me down the right path.