Error 1053 The Service Did Not Respond Windows Xp
Contents |
in a timely fashion" when attempting to start, stop or pause a service Modified on: Tue, 26 Apr, 2016
Windows Service Error 1053 The Service Did Not Respond To The Start
at 12:13 PM PROBLEM When attempting to start, stop or pause error 1053 the service did not respond windows 7 a service, one of the following error messages is encountered: "Error 1053: The service did
Error 1053 The Service Did Not Respond Windows Server 2008 R2
not respond to the start or control request in a timely fashion.""Error 7000: The
be down. Please try the request again. Your cache administrator is webmaster. Generated Mon, 10 Oct 2016 08:32:15 GMT by s_ac15 (squid/3.5.20)
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error 1053 the service did not respond to the start or control request up vote 27 down vote favorite 1 I've written a Windows Service in C# that basically checks my db every minute for orders, generates a PDF from these orders, and emails it. The logic works perfectly in my tests etc.. When i create the service, and install it using the setup project, when I go to start the service in the services mmc, I get: error 1053 the service did not respond to the start or control request in a timely fashion My OnStart method looks like this: protected override void OnStart(string[] args) { //writeToWindowsEventLog("Service started", EventLogEntryType.Information); timer.Enabled = true; } Basically, just enables the timer... so theres no process intensive call there. Where am I going wrong? I've tried setting the startup account to local system, network service etc... nothing works! Edit: Here is my code: (processPurchaseOrders is the method where the db is queried and pdf's are generated etc...) public partial class PurchaseOrderDispatcher : ServiceBase { //this is the main timer of the service private System.Timers.Timer timer; public PurchaseOrderDispatcher() { InitializeComponent(); } // The main entry point for the process static void Main() { #if (!DEBUG) ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new PurchaseOrderDispatcher() }; ServiceBase.Run(ServicesToRun); #else //debug code PurchaseOrderDispatcher service = new PurchaseOrderDispatcher(); service.processPurchaseOrders(); #endif } private void InitializeComponent() { this.CanPauseAndContinue = true; this.ServiceName = "Crocus_PurchaseOrderGenerator"; } private void InitTimer() { timer = new System.Timers.Timer(); //wire up the timer event timer.Elapsed += new Ela