Error 1053 The Service Cannot Be Started
Contents |
in a timely fashion" when attempting to start, stop or pause a service Modified on: Tue, 26 Apr, 2016 at 12:13 PM PROBLEM When windows error 1053 cannot start service attempting to start, stop or pause a service, one of the error 1053 service failed to start following error messages is encountered: "Error 1053: The service did not respond to the start or control
Error 1053 Service Will Not Start
request in a timely fashion.""Error 7000: The
Error 1053 Service Did Not Respond To Start Or Control Request In Timely Fashion
timely fashion.""Error 7009: Timeout (30000 milliseconds) waiting for the
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
Error 1053 Service Timely Fashion Windows 2008 R2
Us Learn more about Stack Overflow the company Business Learn more about hiring developers error 1053 windows server 2008 r2 or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack error 1053 windows 10 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 https://support.threattracksecurity.com/support/solutions/articles/1000071019-error-1053-the-service-did-not-respond-in-a-timely-fashion-when-attempting-to-start-stop-or-pause to the start or control request in a timely fashion up vote 12 down vote favorite 3 I have read similar post ..Suggestion I got is to install .Net Framework Patch ...But still I am looking for alternate solution ..... I have created and installed service couple of times ...initially it was working Fine ... but After some changes in service Code it start giving the http://stackoverflow.com/questions/24228307/error-1053-the-service-did-not-respond-to-the-start-or-control-request-in-a-time error when i restart the service in Services.msc : Error 1053: the service did not respond to the start or control request in a timely fashion this is my code : public partial class AutoSMS : ServiceBase { public AutoSMS() { InitializeComponent(); eventLog1.Clear(); if (!System.Diagnostics.EventLog.SourceExists("MySource")) { System.Diagnostics.EventLog.CreateEventSource( "MySource", "MyNewLog"); } eventLog1.Source = "MySource"; eventLog1.Log = "MyNewLog"; Timer checkForTime = new Timer(5000); checkForTime.Elapsed += new ElapsedEventHandler(checkForTime_Elapsed); checkForTime.Enabled = true; } protected override void OnStart(string[] args) { eventLog1.WriteEntry("In OnStart"); } protected override void OnStop() { eventLog1.WriteEntry("In onStop."); } void checkForTime_Elapsed(object sender, ElapsedEventArgs e) { string Time = "15:05:00"; DateTime dateTime = DateTime.ParseExact(Time, "HH:mm:ss", CultureInfo.InvariantCulture); if (DateTime.Now == dateTime) ; eventLog1.WriteEntry(Time); } } Here is my Main Method Code static void Main() { ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new AutoSMS() }; ServiceBase.Run(ServicesToRun); } I also Tried Following Steps : Go to Start > Run > and type regedit Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control With the control folder selected, right click in the pane on the right and select new DWORD Value Name the new DWORD: ServicesPipeTimeout Right-click ServicesPipeTimeout, and then click Modify Click Decimal, type '180000', and then click OK Restart the computer I used to install and uninstall it w
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 http://stackoverflow.com/questions/23654601/windows-service-wont-start-error-1053-the-service-did-not-respond-to-the-star 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 Windows Service won't start 'Error 1053: The error 1053 service did not respond to the start or control request in timely fashion' up vote 3 down vote favorite 1 I am currently working on a Windows Service as a non-GUI part of our application. I wrote a Service which, in Debug conditions, perfectly works. This means I debug by having my static void Main() as following: #if(!DEBUG) ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new TRAservice() error 1053 service }; ServiceBase.Run(ServicesToRun); #else TRAservice Service = new TRAservice(); Service.CanHandlePowerEvent = false; Service.CanHandleSessionChangeEvent = false; Service.CanPauseAndContinue = true; Service.CanShutdown = true; Service.CanStop = true; Service.ServiceName = "TRAservice"; Service.AutoLog = false; Service.SetMethod(); Service.TRAmethod(); #endif To do some implementation testing, I added a ProjectInstaller and I install my service via the VStools cmd prompt, installutil servicename.exe. (For reference, I include the constructor of the service with the OnStart in the bottom of this post.) However, when I then try to START the service, I get the following error: In my event viewer I get 4 messages (2 information (Windows error reports), 2 errors): I have tried a lot of things, including, but not limited to, removing the debug lines out of the constructor (as elsewhere suggested), rebooting, installing from Release (instead of Debug)... I will take any suggestion to fix this problem. Thanks in advance. public TRAservice() { InitializeComponent(); CanHandlePowerEvent = false; CanHandleSessionChangeEvent = false; CanPauseAndContinue = true; CanShutdown = true; CanStop = true; ServiceName = "TRAservice"; AutoLog = false; sSource = "TRAservice"; sLog = "TRAlog"; if (!EventLog.SourceExists(sSource)) { EventLog.CreateEventSource(sSource, sLog); } eventLog1 = new System.Diagnostics.EventLog(); eventLog1.Source = sSource; eventLog1.Log = sLog; eventLog1.WriteEntry("Service started", EventLogEntryType.Information, 1, 100); scheduleTimer = new