Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Is the "ASPError" object just a myth?
I have been trying in vain to use the ASPError object in my ".asp" web scripts (We have IIS6 installed). I have seen numerous examples online and though I copy and paste them exactly, the ASPError object always returns blank values. Here's something I tried:
<%
on error resume next
x = 4/0 'this should crash it
response.clear
set aspErr = server.getLastError
response.write aspErr.Number & "<br>" & aspErr.Description & "<br>" & aspErr.Line
on error goto 0
%>
I expected to see information displayed relating to the division by zero error: but the aspErr.Number and AspErr.Line are zero; and the aspErr.Description is blank. Do you get the same result on your IIS server? Can somebody show me some sample code that actually prints the error description? Thanks!
codepunk -- Thanks for the suggestion, but it did not work (I didn't really expect it to, since ASP/VBScript names are always case-insensitive).
2 Answers
- 1 decade agoFavorite Answer
Hello. I just found a useful link to your question:
http://www.devarticles.com/c/a/ASP/Replacing-the-E...
You may need to put them on your webserver error page. Hope helpful.
- 1 decade ago
See if changing the following fixes it
set aspErr = server.getLastError
to
set aspErr = Server.GetLastError