I have created a windows service and have successfully installed it and confirmed it works.
Now I am trying to connect to it using a ServiceController from System.ServiceProcess.
I am not able to view information about my service, but I can view information from other services on the server... so I did not think it would be a network permission issue.
I get this error message: "Cannot open DbaseEmailService service on computer 'ServerName'.
I get this InnerExeception Message: "Access is denied"
I must have missed something when creating the service, Is there some property I may need to set on my service app that will allow me to control it using the ServiceController in VB.NET?
Dim se As System.ServiceProcess.ServiceController
se = New System.ServiceProcess.ServiceController("DbaseEmailService", "ServerName") 'DOES NOT WORK
' se = New System.ServiceProcess.ServiceController("Alerter", "ServerName") 'WORKS OK
' se = New System.ServiceProcess.ServiceController("Dnscache", "ServerName") 'WORKS OK
Dim bt As String = "Service Status Unknown"
'display service status
Select Case se.Status
bt = "Service Stopped"
bt = "Service Running"
ButtonService.Content = bt
Catch ex As Exception