Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
2101
The ASPError Object
Introduction
The ASPError object is used to display a detailed
description about the error that has occurred on the asp
page. This object is very useful when you work with asp
pages. It calls internally the Server.GetLastError to
retrieve the error information. It has several useful
properties, which can be used to get detailed information
i.e.: the line property can be used to retrieve the line in
which the error occurred. Another one is the ASPDescription
property, which returns a detailed description of the error.
Below you will find a table with all available
properties.
NOTE: The ASPError object as well as the
GetLastError function can be only called within a 500-error
handler page not from any asp page. The best is to create a
custom 500-handler page, which includes the required
properties. Once you have created your page, you have to
change the path for the 500-error handler in IIS. Open IIS
and go to the properties of your website. Now press here the
Custom Errors tab and scroll down to the 500;100 HTTP
Error.
Now press the “Edit Properties” button and
change the URL so that it looks for your Custom Error
page.