How to debug a System Service on customer machine

G

Guest

This may seem like a stupid question, but for some reason I'm having trouble
finding an answer.

I have a service that is running with a system account on a Windows 2000
machine at a customer site written in .NET. The service periodically crashes
with an Unhandled exception. How can I attach a debugger to give me more
information about why the exception is thrown?

I've used Dr. Watson and it doesn't detect anything with the service
crashes. Any help would be appreciated. Thanks.
 
M

mdb

I have a service that is running with a system account on a Windows
2000 machine at a customer site written in .NET. The service
periodically crashes with an Unhandled exception. How can I attach a
debugger to give me more information about why the exception is
thrown?

If it is a debug version of the assembly, then you can install the "Remote
Debugging Tools" on the machine, and attach to the process while it is
running with Visual Studio. There are some issues in doing this - I think
you need to be a member of the same domain because the debugger user
identity needs to be a member of Debugger Users or something like that on
the target machine, but you might be able to work around it (haven't tried
myself.)

-mdb
 
G

Guest

Thanks for your response. That would be great if I could do that, but I would
need to forward some ports on the customer's firewall. Also, the machine is
on a domain and it would be too difficult to try and work around that.

Isn't there a way I can have Windows or the CLR create a dump file?
 

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

Top