Windows service Error:1053
-
Hi, I am new to this vb.net, my problem is i have created the windows service in vb.net c#. I deployed it in my system when i am try to start that service it showing the error as Error:1053 could not start the service on Local system The service didnot respond to the start ro control request in a timely fashion I have tried to resolve it, but i could not... Please help me to solve this problem. Thanks in advance.
With Regards, Samson
-
Hi, I am new to this vb.net, my problem is i have created the windows service in vb.net c#. I deployed it in my system when i am try to start that service it showing the error as Error:1053 could not start the service on Local system The service didnot respond to the start ro control request in a timely fashion I have tried to resolve it, but i could not... Please help me to solve this problem. Thanks in advance.
With Regards, Samson
Does the deployment machine have the correct .NET Framework installed on it?? In the OnStart method of your service, did you create an instance of your worker class on a seperate thread?? You don't just put all of your code in OnStart and never let that method return. This is exactly the error you get when you do this. Your worker code should be running under it's own thread, that you create in the OnStart event of your service.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008