Server.GetLastError() does not work?!?

A

ASP.Confused

I have a program that I'm trying to get error detection to work with. To
test it, I attempted using the following mispelled CreateObject statement
(which should cause an error):

Set myObject = CreateObject("ADODB.Connectiom")

Err.Number shows 429, which is normal. But Server.GetLastError reports no
error!

I would like to have line numbers and the line of source code, along with
the file name, of the offending code.

Any suggestions?
 
A

Aaron [SQL Server MVP]

Server.GetLastError() is only available in a custom 500 error handler page.
 
A

ASP.Confused

Any ideas on how I can get the line number of the command that has the error
on it without using a custom HTTP 500-100 error handler page? I cannot set
my site to use it, since it is hosted by another company (and they can't
change it because we're on a secure server sharing one certificate, and
changing it for us would change it for everyone.)
 
A

Aaron [SQL Server MVP]

No, I don't think line number is available to the err collection using the
stock asp error handling.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top