Unable to stop a windows service on the local computer

Jan 20 2009 6:24 AM

I am creating an object of servicecontroller() like

system,.serviceprocess.servicecontroller objService = new servicecontroller(Service Name);

Iam trying to stop the service using

   objService.Stop(); but i am unable to start the service.

I tried by writing the above statement 2 times,

 objService.Stop();

  objService.Stop();                 

now iam able to stop the service. why so?

please help me.Its very urgent