Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem in C#(Run service)

26 views
Skip to first unread message

merre

unread,
Mar 4, 2010, 8:23:01 AM3/4/10
to
Hi!

I have a problem when i wanna run a service from my COM object
My code is:

System.ServiceProcess.ServiceController sc = new
System.ServiceProcess.ServiceController("ClosetalkFlashPump",
Environment.MachineName);
sc.ExecuteCommand(128);

and I get this error:

Cannot open ClosetalkFlashConverter service on computer '.'.
System.ServiceProcess
at System.ServiceProcess.ServiceController.GetServiceHandle(Int32
desiredAccess)
at System.ServiceProcess.ServiceController.ExecuteCommand(Int32 command)

My COM object is in 64x and my service is in 32x (it must be in 32x)
I´m running in windows 2008. All of it works fine in windows 7

Can you please help me. I have working on it in 2 weeks and no progress
Kind Regards
Mehran

0 new messages