Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
I created a WinService that works well on my local machine. When I deploy/install it on a Remote Server, it fails to start w/ Error 1053. It is hard for me to define what is wrong there. Therefore, I want to run debugging against the Remote Service installed. What's the procedure to setup for the debugging? Thanks if you can help.
Posted
Comments
Mehdi Gholam 10-Oct-14 11:16am    
Try adding a log to see where it is failing.
s yu 10-Oct-14 12:10pm    
it may not work since the service can't be started. Only a general error message: 1053 is thrown. Any new hint? Thanks.
Sergey Alexandrovich Kryukov 10-Oct-14 12:32pm    
No, the logging will work exactly where you need it: on the part of code executing before the failure. Good idea, just try it out. It's a matter of making the logging fine-grain and focusing on initialization parts of code.
—SA
rahulkichur 10-Nov-14 4:35am    
There are two different ways to debug a service application. You could use any one of two ways to debug.



1. The Remote Debugging Monitor (msvsmon.exe) is a small application that Visual Studio connects to for remote debugging. It is a tool in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Remote Debugger\x86. For detailed information about using it. See How to: Run the Remote Debugging Monitor.



2. We run with ntsd.exe is in the command line. There’s also a way to use immediate window to type the command for using ntsd(a MSDN document here).

For detailed information about using ntsd.exe in the command line, see this blog : http://urosv.blogspot.com/2010/05/remote-debugging-with-windbg-and-ntsd.html



So they are different ways to debug a service application. We could use all of the two ways to debug your server app.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900