To configure a custom error log for classic ASP applications in IIS (Internet Information Services), you can follow these steps:
- Open Internet Information Services (IIS) Manager on your server.
- You can typically find it under “Windows Administrative Tools” in the Start menu.
- Expand the server node and select the website where your classic ASP application is hosted.
- In the Features View, double-click on “ASP” (under the IIS section).
- In the ASP settings, scroll down to the “Debugging Properties” section.
- Set the “Send Errors To Browser” option to
False
. This prevents detailed error messages from being sent to the client’s browser. - Set the “Enable Server-side Debugging” option to
False
. This disables server-side debugging, which is not necessary for error logging. - Under the “ASP” section (in the Features View), double-click on “Error Messages.”
- In the Error Messages settings, locate the “Default Path” property under the “Miscellaneous” section.
- 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.
- 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.