Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Classic ASP Exception Logging (500 and 500.100 errors)

Tags:

asp-classic

I have a client that is running a classic asp site on IIS7. In order to see any errors from the classic asp pages, I modified the IIS7 Error Pages to point 500 and 500.100 errors to a special classic asp page that finds the last error and then appropriately logs it for the future (pretty much what Elmah does for asp.net). What we are seeing on IIS7 is an occasional error message from the exception logging classic asp page itself. And it appears it is for the 500 errors; 500.100 errors seem to get logged without any problems.

So two questions:

  • How can I cause a plain old 500 error (not 500.100) on this website to test the classic asp page exception logging?
  • Is there a better way to capture and log exceptions from classic asp pages in IIS7?
like image 244
Jeff Widmer Avatar asked Sep 30 '09 13:09

Jeff Widmer


People also ask

What is the cause of 500 Internal server error?

The 500 Internal Server error could be caused by an error during the execution of any policy within Edge or by an error on the target/backend server. The HTTP status code 500 is a generic error response. It means that the server encountered an unexpected condition that prevented it from fulfilling the request.

What is 500 proxy error?

The 500 Internal Privoxy Error message appears when you are trying to access a specified URL. This error message can be caused due to your Internet proxy settings or an outdated browser.

How to trigger a 500 error?

htaccess, you can simply trigger a 500 directly: RewriteRule ^ - [R=500] . (In fact, any invalid syntax would do the job, eg crash ). You don't need the separate folder, you could make the error conditional in your main .

What is error 500 on google?

The 500 response code means that the request for a web page was unsuccessful.


1 Answers

Two questions - two answers:

  1. you should be able to raise an error with the following err.raise nr, source, description
  2. The error handling you are using (modifying the error pages) seems to be a common way for classic asp apps.
like image 163
Michal Avatar answered Oct 20 '22 21:10

Michal