I have an ASP.NET 4 Web Forms app that is using URL Routing. I have the following route specified in Application_Start:
routes.MapPageRoute("Schedule", "Schedule", "~/Schedule.aspx");
Pretty simple. I just want to reroute requests for "http://example.com/Schedule" to "http://example.com/Schedule.aspx". Works great. However, if my application throws an exception while using routing, the Application_Error method in Global.asax is not executed. I see the generic .net error message instead. If I throw the same exception when using the full "Schedule.aspx" it works as expected. Any ideas?