I've just test with NT 4.0 sp6a on four machines. These all return the same error. Is there any other reason for this problem?
-----Original Message----- From: Urs Eichmann [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 12:02 To: [EMAIL PROTECTED] Subject: [DOTNET] AW: [DOTNET] ServiceController Bug Note that only NT4 *SP6a* is supported, not SP4. What's more, it seems that hosting multiple services within one EXE is not supported on NT4 (don't know if you use this features in your app, but just to let you know). Urs -----Ursprüngliche Nachricht----- Von: Powell, Simon [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 5. Juni 2002 12:10 An: [EMAIL PROTECTED] Betreff: [DOTNET] ServiceController Bug Is there a bug with the ServiceController class? If I use the following code to connect to a Windows NT 4.0 workstation I get an error: //************************************************************************** ***************************** private void PIAServiceStatus_Load(object sender, System.EventArgs e) { this.Text = "Current Service Status : " + gCurrentMachine; ServiceController PIAsrv = new ServiceController("PontisInstallAgent", gCurrentMachine); label1.Text = PIAsrv.Status.ToString(); } //************************************************************************** ***************************** The following error is returned: **************************************************************************** *************************** An unhandled exception of type 'System.InvalidOperationException' occurred in system.serviceprocess.dll Additional information: Service PontisInstallAgent was not found on computer 'iblonerw1020'. **************************************************************************** *************************** The code works fine communicating to Windows XP & Windows 2000. According to the SDK Windows NT 4.0 is supported. Most of our machines are running sp4 or sp6 and there are about 5000 of them. Simon ---------------------------------------------------------------------- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. ---------------------------------------------------------------------- You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. ---------------------------------------------------------------------- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. ---------------------------------------------------------------------- You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.