Knowledgebase
Net Access > Customer Support Help Desk > Knowledgebase

How do I enable detailed errors in classic ASP?

Solution You can enable detailed error messages for your classic ASP site defaulted to Windows/IIS by using a web.config file with the following:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
</system.webServer>
</configuration>

Note: Detailed errors are an excellent way to troubleshoot your site code in classic ASP because the error messages they generate on your site may contain information that is relevant to the error you are experiencing and will assist you in resolving many coding issues. However, please be mindful when using detailed errors on a production site because the information that is output to the page can also be very revealing about the way your code works and processes information, which is particularly concerning for the security of your site. Therefore we strongly recommend the use of detailed errors for sites that are in development or experiencing problems; conversely we strongly recommend disabling detailed errors while the site is in production and not experiencing any issues.

For more detailed information regarding the syntax and use of <httpErrors> please visit:
http://www.iis.net/ConfigReference/system.webServer/httpErrors
 
Was this article helpful? yes / no
Article details
Article ID: 96
Category: Cloud Hosting
Date added: 2009-09-07 14:30:27
Views: 41
Rating (Votes): Article rated 3.0/5.0 (4)

 
<< Go back

Powered by Help Desk Software HESK™