ASP.NET customErrors with mode=remoteOnly and global.asax handling exceptions
问题 I have custom errors set in the web config file as follows: <customErrors mode="RemoteOnly" defaultRedirect="GenericError.aspx" /> Fine and dandy... I like that mode="RemoteOnly" facilitates development... For unhandled exceptions, I have in global.asax: Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) Response.Redirect("GenericError.aspx") End Sub However, unhandled exceptions are going to the generic error page instead of the informative yellow screen of death preferred