i have windows service "monitoringservice" (account:localservice) and another service named
"uploadService" (account: local system), i installed the uploadService with setupproject and
when i start this upload service its working fine. but when i start the upload service with
the help of "monitoringservice" iam unable yo start the service iam getting the below error
"cannot open uploadService on the computer'.'"
Can any one suggest me please iam strck up with this problem
i used the following code
ServiceController sc = new ServiceController("UploadService");
if(sc!=null)
{
try
{
if (sc.Status != ServiceControllerStatus.Running && sc.Status != ServiceControllerStatus.StartPending)
{
sc.Start();
}
}
catch (Exception ex)
{
}
}
Thank you in advance