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?
<error statusCode="500.100" path="/error500.asp" responseMode="ExecuteURL" />
– VMV500.100
status code. Is that a Microsoft specific extension to HTTP to distinguish classic ASP errors from other 500 errors? – Joshua Frank