J
jpaquette
This may be an exercise in futility otherwise I would already have
found the answer, but what the heck. Here's the scenario:
I maintain a website programmed in C# using the .Net framework. I
have the global asax file configured to grab the InnerException
message and send me an email when an error is encountered on the site.
This does a good job of telling me the page and type of problem, but
in certain circumstances is utterly useless because I cannot find a
way to produce the line number of the actual code where the error
occured.
I've already tried getting the info from the stacktrace but all I get
is information from the asax file that is sending me the email (that
is the stackframe.GetLineNumber returns the line in the asax where the
stacktrace is referenced).
I am researching this because I get a lot of "Object reference not
found" errors. These errors occur on multiple pages and I cannot find
the source of them. I'm persistantly unable to recreate the error
myself. If I was able to configure the error alert emails to include
the line numbers where this happens, I might be able to get rid of this
error once and for all.
If there is anyone out there in googleland that can sympathize with my
plight and provide me with a nice explanation of how to do this or why
it is not possible I would be most appreciative.
found the answer, but what the heck. Here's the scenario:
I maintain a website programmed in C# using the .Net framework. I
have the global asax file configured to grab the InnerException
message and send me an email when an error is encountered on the site.
This does a good job of telling me the page and type of problem, but
in certain circumstances is utterly useless because I cannot find a
way to produce the line number of the actual code where the error
occured.
I've already tried getting the info from the stacktrace but all I get
is information from the asax file that is sending me the email (that
is the stackframe.GetLineNumber returns the line in the asax where the
stacktrace is referenced).
I am researching this because I get a lot of "Object reference not
found" errors. These errors occur on multiple pages and I cannot find
the source of them. I'm persistantly unable to recreate the error
myself. If I was able to configure the error alert emails to include
the line numbers where this happens, I might be able to get rid of this
error once and for all.
If there is anyone out there in googleland that can sympathize with my
plight and provide me with a nice explanation of how to do this or why
it is not possible I would be most appreciative.