473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to debug a System Service on customer machine

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.
Jul 21 '05 #1
2 1428
mdb
"=?Utf-8?B?TWlrZSBUcmVhZHdheQ==?="
<Mi**********@discussions.microsoft.com> wrote in
news:EE**********************************@microsof t.com:
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
Jul 21 '05 #2
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?

"mdb" wrote:
"=?Utf-8?B?TWlrZSBUcmVhZHdheQ==?="
<Mi**********@discussions.microsoft.com> wrote in
news:EE**********************************@microsof t.com:
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

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Scott | last post by:
Not sure if this is the right place to post this or not, but I am in the process of trying to find a Web Hosting/Isp Billing system that is reasonable in price and uses Access or SQL Server for a...
2
by: avishosh | last post by:
Hi, I'm getting the folowing error when tring to open xml file: -------------------------------------------------------------------------------- The system cannot locate the resource specified....
2
by: DC Gringo | last post by:
I recently added a machine with Visual Studio.NET 2003 on a Win2k sp4 SERVER machine and am having problems with roaming profiles. Apparently the Machine Debug Manager (mdm.exe) service is holding...
2
by: Buz Waitz | last post by:
When I try debugging a VB windows app in Visual Studio.Net I get the error, "Error whle trying to run project: Unable to start debugging. The Machine Debug Manager service is disabled." Help?
2
by: Mike Treadway | last post by:
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...
6
by: =?Utf-8?B?Wm9vZG9y?= | last post by:
I have a ClickOnce application that uses web services. This works from every machine we can test it on; however, a customer has a laptop that fails with an exception (relevant portion of stack...
8
by: BVS | last post by:
I am moving from c++ to c# and I have been converting code to c# I have not been able to convert the following code: SYSTEM_INFO siSysInfo; GetSystemInfo(&siSysInfo); SystemID =...
3
by: =?Utf-8?B?bG10dGFn?= | last post by:
We have developed a number of different applications (ASP.NET web site, Windows services, DLLs, Windows forms, etc.) in C# 2.0. We have developed and unit tested all these applications/components...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I want to limit the user only login the system one time at the same time. I don't want him login the system two with the same user at the same time. How to do this? If i have a table to record...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.