Error 500 resume next

I have a complicated asp page programmed, and I put a resume next on the page so my clients don't see the 500 error on non esential problems.
But then I see the error doesn't get logged in my logs. (my 500 error page doesn't get run)
Is there a way to get around that? the client shouldn't realize anything is wrong, but I should still get notified that there is a problem?
rivkamakAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
It wouldn't get run if you are bypassing it.
To hack it you would need to add something like this everywhere that a potential error could occur and then reset the error. Logging errors to your db probably...

If Err.Number <> 0 Then
...
End If

Of course the better solution would be to fix your code so you don't get errors or you handle them correctly so they are soft errors.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rivkamakAuthor Commented:
Why is it that sometimes I get a specific line number, and some sites on the same server always give me a 500 error with a 0 in the line number?
What might that indicate as the problem?
0
GaryCommented:
Is this on an sql command?
0
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

rivkamakAuthor Commented:
something on my page is throwing the 500 error.
sometimes i get a real line number and sometimes i just get 0.
What does line number: 0 mean?
0
GaryCommented:
I'm rusty on classic asp but from what I can remember it means the error wasn't with the code itself but in the execution of the code, an example would executing a sql command where the error is returned from your db connection and not from the sql statement itself.
0
rivkamakAuthor Commented:
Is there something I need to set up in the website IIS manager?
0
GaryCommented:
There is nothing you can do with it - there is no line number because the error occurred outside the code.  You could just add into your error logging some suggestive comment that indicates where it happened.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.