How do I find out where an unhandled exception happened?

  • Thread starter Thread starter Alan Silver
  • Start date Start date
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
 
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

Back
Top