By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,667 Members | 1,697 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,667 IT Pros & Developers. It's quick & easy.

How to use Stackframe and stacktrace in Windows Service

P: n/a
Hi,
I am facing problem with the use of the stackframe and stacktrace for the
exception hadling with Windows service.

Can any one please tell me how to use of the above objects (stackframe and
stacktrace ) in Window service.

Thanks and regards,
Avinash.
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

What exactly problem are you having? Do you get a SecurityException when
accessing System.Diagnostics.StackTrace/System.Diagnostics.StackFrame?

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

"Avinash" <Av*****@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
Hi,
I am facing problem with the use of the stackframe and stacktrace for the
exception hadling with Windows service.

Can any one please tell me how to use of the above objects (stackframe and
stacktrace ) in Window service.

Thanks and regards,
Avinash.


Nov 16 '05 #2

P: n/a
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.
Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.