Debugger.Launch() hangs service on remote machine
I am trying to step through a windows service on two machines simultaneously to test that a multi-server configuration will work correctly. I can debug everything normally on my local machine.
In my remote version (running in a virtual server via remote desktop), if I simply run the compiled service, it runs fine (all logging output is normal, etc.) However, if I uncomment my Debugger.Launch() line and try to stop it in VS, the service simply hangs and does not respond "in a timely fashion." Nothing even shows up in Event Viewer. In fact, the service never comes back from "Starting" status and I have to reboot!
This strikes me as possibly some sort of security issue since I'm doing this on a remote machine, but I can't fathom what it would be. I can otheriwse run and debug the project just fine on the remote machine. Something about the Debugger.Launch() statement, in particular, is killing me. Any ideas?
I have the service installed under LocalSystem on both machines. I have tried a local admin login with the same results (I don't have domain admin rights, but I would hope that I wouldn't need them).
--------------------------------
From: Brian Moeskau
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>9c7b6I㚱ẻ콇㒬==</Id>
date: Sun, 15 May 2005 05:21:26 -0700
author: Brian Moeskau via .NET 247