Use <error statusCode="500.100" path="/error500.asp" responseMode="ExecuteURL" />
in web.config. See all IIS response codes this http://support.microsoft.com/kb/943891/en
Is there a way to redirect Classic ASP errors differently from .NET errors?
-
15-07-2023 - |
Question
I've got a hybrid .NET and classic ASP site. Error handling in .NET is done with the Application_Error
event, with custom handling for 500 errors. I'd like to handle errors in Classic ASP by routing to a custom ASP page, but I can't find any way to do this other than an entry like this in web.config:
<error statusCode="500" path="/error500.asp" responseMode="ExecuteURL" />
But this will route all 500 errors, not just the ones caused by Classic ASP pages. So the question is: can I reroute just the Classic ASP errors while letting .NET errors be handled by .NET code?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow