Another thing to check would be security/login issues - eg does your service have the rights to control another service? Try changing the login that your service runs as to an administrator user...
-----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Eric Means Sent: 03 December 2004 13:50 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] ServiceControlManager within an NT Service Robert, I've written several Windows Services that use the SCM classes to control other services. I would check the Event Log to see if the Alerter service is logging anything. Also check to see if there's an InnerException or explanation in the exception the SCM is throwing. On Fri, 3 Dec 2004 15:55:51 +1100, Robert Rolls <[EMAIL PROTECTED]> wrote: > I have an NT service that is calling ServiceControlManager from within a > custom command. The problem however is that it times out for the Alerter > service however starting the alerter server normally takes only a few > seconds, are there any known issues with using ServiceControlManager > from within a service? > > Regards > Robert. =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with C# November 29 - December 3, in Los Angeles http://www.develop.com/courses/edotnet View archives and manage your subscription(s) at http://discuss.develop.com
