ASP error logging

M

Marcin

Hi,

The problem is the following: I have experienced some ASP errors in my
web application and I'm unable to reproduce those errors because IIS
is configured in a way that does not send any debugging messages to
the user (and I cannot change it). Only standard string "An error
occured on the web server when processing the url..." is sent. So, two
questions:
1) Is there any way to log such situations to the eventlog, a file,
database or any other storage?
OR
2) Is there any way to allow me to send only piece on debugging
information to the user. In other words: I'd like to send error code
that would be understandable only by me?

thanks
P.
 
B

Bob Barrows [MVP]

Marcin said:
Hi,

The problem is the following: I have experienced some ASP errors in my
web application and I'm unable to reproduce those errors because IIS
is configured in a way that does not send any debugging messages to
the user (and I cannot change it). Only standard string "An error
occured on the web server when processing the url..." is sent. So, two
questions:
1) Is there any way to log such situations to the eventlog, a file,
database or any other storage?
OR
2) Is there any way to allow me to send only piece on debugging
information to the user. In other words: I'd like to send error code
that would be understandable only by me?

thanks
P.
Does this apply? http://www.aspfaq.com/show.asp?id=2109
Bob Barrows
 
M

Marcin

no it does not :(. I cannot tell users to change their browsers settings.
Any other ideas?
 
B

Bob Barrows [MVP]

Huh? You can't make a simple request to your users to turn off Friendly
errors to help you debug your application so that their use of your
application will be enhanced? This seems ultra-cautios on your part (to me,
at least).

An alternative would be to use a custom error page to do your error logging
(http://www.aspfaq.com/show.asp?id=2335), but you say this is not allowed.

The only solution I can see is to write a page that logs the errors to a
database (or perhaps to a flat file), then include code in each and every
page to call this error handler when errors occur.

Bob Barrows
 
J

Jeff Cochran

no it does not :(. I cannot tell users to change their browsers settings.
Any other ideas?

Change yours and duplicate the user's actions. The browser is hiding
the error message you need.

Jeff
 

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,161
Messages
2,570,891
Members
47,423
Latest member
henerygril

Latest Threads

Top