How do I get actual error in Application_Error() web method?

  • Thread starter Richard Martino
  • Start date
R

Richard Martino

I have a web service running and occasionally my web method
Application_Error() is getting called.

How do I find out what the error really is?

I am not passed in any System.Exception object like in try/catch.

There has to be a way to identify the error when an error routine is
called.

Thanks.
 
D

Dilip Krishnan

Hello Richard,

From the HttpContext.Current.AllErrors gives a collection of exceptions
in teh current context
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
 

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
473,997
Messages
2,570,240
Members
46,829
Latest member
KimberAlli

Latest Threads

Top