ASP error logging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcin

    ASP error logging

    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.
  • Bob Barrows [MVP]

    #2
    Re: ASP error logging

    Marcin wrote:[color=blue]
    > 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.[/color]
    Does this apply? http://www.aspfaq.com/show.asp?id=2109
    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Comment

    • Marcin

      #3
      Re: ASP error logging

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

      "Bob Barrows [MVP]" <reb01501@NOyah oo.SPAMcom> wrote in message news:<ecaEuwClE HA.3756@TK2MSFT NGP11.phx.gbl>. ..[color=blue]
      > Marcin wrote:[color=green]
      > > 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.[/color]
      > Does this apply? http://www.aspfaq.com/show.asp?id=2109
      > Bob Barrows[/color]

      Comment

      • Bob Barrows [MVP]

        #4
        Re: ASP error logging

        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

        Marcin wrote:[color=blue]
        > no it does not :(. I cannot tell users to change their browsers
        > settings.
        > Any other ideas?
        >
        > "Bob Barrows [MVP]" <reb01501@NOyah oo.SPAMcom> wrote in message
        > news:<ecaEuwClE HA.3756@TK2MSFT NGP11.phx.gbl>. ..[color=green]
        >> Marcin wrote:[color=darkred]
        >>> 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.[/color]
        >> Does this apply? http://www.aspfaq.com/show.asp?id=2109
        >> Bob Barrows[/color][/color]

        --
        Microsoft MVP - ASP/ASP.NET
        Please reply to the newsgroup. This email account is my spam trap so I
        don't check it very often. If you must reply off-line, then remove the
        "NO SPAM"


        Comment

        • Jeff Cochran

          #5
          Re: ASP error logging

          On 6 Sep 2004 22:59:19 -0700, big_tiger@poczt a.onet.pl (Marcin) wrote:
          [color=blue]
          >no it does not :(. I cannot tell users to change their browsers settings.
          >Any other ideas?[/color]

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

          Jeff

          [color=blue]
          >"Bob Barrows [MVP]" <reb01501@NOyah oo.SPAMcom> wrote in message news:<ecaEuwClE HA.3756@TK2MSFT NGP11.phx.gbl>. ..[color=green]
          >> Marcin wrote:[color=darkred]
          >> > 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.[/color]
          >> Does this apply? http://www.aspfaq.com/show.asp?id=2109
          >> Bob Barrows[/color][/color]

          Comment

          Working...