How do I find out where an unhandled exception happened?

A

Alan Silver

Hello,

I have been seeing unhandled exceptions in one of my sites, so I added
code to the global.asax to catch them and report them to me. I use
Server.GetLastError() to get the exception, and send an e-mail with the
details. I can't find out how to work out where the actual exception
took place though, as none of the properties of the exception seem to
contain the details of the page, ever mind where in the page.

I tried looking at InnerException, but that is always null.

Any ideas? TIA
 
A

Alan Silver

Anyone?

Alan Silver said:
Hello,

I have been seeing unhandled exceptions in one of my sites, so I added
code to the global.asax to catch them and report them to me. I use
Server.GetLastError() to get the exception, and send an e-mail with the
details. I can't find out how to work out where the actual exception
took place though, as none of the properties of the exception seem to
contain the details of the page, ever mind where in the page.

I tried looking at InnerException, but that is always null.

Any ideas? TIA
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top