Senthil.P

Hi ,

I have created a Windows service and i deployed it . When i tried to Start the service with a Local System Login , I am getting a following error.

Error 1053: The service did not respond to the start or control request in a timely fashion

Can anyone help this.

Thanks in Advance



Re: Visual C# General Hi ...Error 1053: The service did not respond to the start or control request in a timely fashion

VikasKumar

Check what in the OnStart of service and ensure that it return back a success in less than 30 secs.



Re: Visual C# General Hi ...Error 1053: The service did not respond to the start or control request in a timely fashion

TilakGopi

Hi,

1)Check ServiceMain function.

2)Assign proper values SERVICE_STATUS variable.

3)Check the return value of RegisterServiceCtrlHandler function, shouldn't be null.

4)Then SetServiceStatus function,should return TRUE.

5)If all of the above functions work properly, better log the events,U'll get to know where the prolbem is.If not,post code,we can help u out.

Thanx,
Ch.T.Gopi Kumar.






Re: Visual C# General Hi ...Error 1053: The service did not respond to the start or control request in a timely fashion

Senthil.P

Gopi,

Thanks.I have checked all teh listed senerio. But i a getting a same error. When i am starting a service i am sending a mail to my ID so i think it takes more time.So that i am getting am error.

Is it so

Thanks,

Senthil





Re: Visual C# General Hi ...Error 1053: The service did not respond to the start or control request in a timely fashion

TilakGopi

Hi,

When u r sending ur mail

Before calling

1)StartServiceCtrlDispatcher

2) RegisterServiceCtrlHandler function

3) SetServiceStatus function

4)better log the steps,U'll get to know where the prolbem is.If not,post code,we can help u out.

Why don't u do that,i.e,sending mail in seperate thread

Should these actions be sequential or can be parallel

Thanx,

Ch.T.Gopi Kumar.






Re: Visual C# General Hi ...Error 1053: The service did not respond to the start or control request in a timely fashion

Senthil.P

Can you send you Mail ID . So that i can send my code. It is too big to post in forum.

Thanks,

Senthil





Re: Visual C# General Hi ...Error 1053: The service did not respond to the start or control request in a timely fashion

TilakGopi

It's gopi_ch@googley.com'.

Thanx,

Ch.T.Gopi Kumar.






Re: Visual C# General Hi ...Error 1053: The service did not respond to the start or control request in a timely fashion

Senthil.P

i have sent you teh mail.. Please get back me ASAP..



Re: Visual C# General Hi ...Error 1053: The service did not respond to the start or control request in a timely fashion

TilakGopi

Hi Senthil,

I have got the code.I'll get back to u immediately when i'm done.

Thanx,

Ch.T.Gopi Kumar.






Re: Visual C# General Hi ...Error 1053: The service did not respond to the start or control request in a timely fashion

shiras

Hi

I have created a windows scheduler setup file which was created in VS2005. i have a user defined webservice and reporting service 2005 webservice also included in the setup file. i am able to install the same successfully. when i goto services.msc i get the following error

I have created the windows service under

Account -- LocalSystem

---------------------------
Services
---------------------------
Could not start the Automated Report Generation for Meridium service on Local Computer.

Error 1053: The service did not respond to the start or control request in a timely fashion.


---------------------------
OK
---------------------------

Can anyone please tell me what is the reason for error

I tried the following

==============

1) Created a simple windows service setup with no reporting service webservice and user defined webservice. it works

2) I tried commenting the above ERROR windows service SETUP by commenting the web services. I get error.

3) I have not installed the webservice. is that the reason i get error.