Re: How to use Stackframe and stacktrace in Windows Service

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Avinash (Avinash_at_discussions.microsoft.com)
Date: 03/07/05


Date: Sun, 6 Mar 2005 20:31:02 -0800

Hi
Thanks for your reply.

Actually when I am use the Stacktrace and stckframe to get the file name and
line number in the catch block of the any method of the Window service. The
service is getting installed but don't getting start. But if I remove the
stackfame and stacktrace from the catch block and use the service the service
wok normally.

So I just want to handle the exception of the windows service using those
object for getting currentfile name and line number.

Thanks and regards,

Avinash.