IIS 6.0 verbose error message, classic ASP

I have a classic asp site that moves from IIS 7 to IIS 6. Unfortunately, I get an error message in my application, but I do not send any detailed error information to the browser, so I can’t fix it. The server displays its own error message as follows:

Internal server error The server detected an internal error or an incorrect configuration and could not fulfill your request. Contact your server administrator to report the time that the error occurred and anything you could do to cause the error. Additional information about this error may be available in the server error log.

How can I get error information like in IIS 5.5? thanks in advance

+8
asp-classic iis-6
source share
2 answers

If you cannot change the parameters of the IIS error, just let the asp page print the error.

At the top of the file, set On Error Resume Next to allow the asp script to continue execution, despite any errors.

Then in possible places where you suspect a mistake, or simply at the bottom of the page; put this code.

 IF Err.Number <> 0 THEN Response.Write "=========================================" & "<br />" Response.Write "Error description: " & Err.Description & "<br />" Response.Write "Source: " & Err.Source & "<br />" Response.Write "LineNumber: " & Err.Line & "<br />" Response.Write "=========================================" & "<br />" END IF 
+13
source share

this is what you need for a long-term goal - http://www.reedolsen.com/show-errors-for-classic-asp-pages-in-iis-6/

or for a short time you can use what is indicated above.

+5
source share

All Articles