How to configure custom error classic ASP using IIS

To configure a custom error log for classic ASP applications in IIS (Internet Information Services), you can follow these steps:

  1. Open Internet Information Services (IIS) Manager on your server.
  • You can typically find it under “Windows Administrative Tools” in the Start menu.
  1. Expand the server node and select the website where your classic ASP application is hosted.
  2. In the Features View, double-click on “ASP” (under the IIS section).
  3. In the ASP settings, scroll down to the “Debugging Properties” section.
  4. Set the “Send Errors To Browser” option to False. This prevents detailed error messages from being sent to the client’s browser.
  5. Set the “Enable Server-side Debugging” option to False. This disables server-side debugging, which is not necessary for error logging.
  6. Under the “ASP” section (in the Features View), double-click on “Error Messages.”
  7. In the Error Messages settings, locate the “Default Path” property under the “Miscellaneous” section.
  8. Specify the path where you want to store the custom error log file. Make sure the directory exists and the IIS_IUSRS group has write permissions to it.
  9. Click “Apply” to save the changes.

Watch Video Configure Custom Error log on IIS for classic ASP

From now on, any errors encountered by your classic ASP application will be logged to the specified file instead of being displayed in the browser. You can then access the error log file to review and troubleshoot the issues.

Note: The above instructions are for IIS versions 7 and above. If you are using an older version of IIS, the steps may differ slightly.

Leave a Reply

Your email address will not be published. Required fields are marked *