Hi,
The ToString() method of the Exception object gives a description of the
exception including the complete stack trace, if all you want is the stack
trach there is also the StackTrace method that returns a string
representation of the stack trace.
To use the event log, you can look at the EventLog class.
Hope this helps
--
Chris Taylor
http://www.xanga.com/home.aspx?user=taylorza
"Mullin Yu" <mu*******@ctil.com> wrote in message
news:OB**************@TK2MSFTNGP10.phx.gbl...
I have some c# web services and c# application. I want to get and log the
Exception Stack beside the exception message got from catch(Exception ex).
Which class and method can do what I want? If possible, I want to log them
into event viewer.
Thanks!