![]() ![]() Check that you have written the correct code to start the service:.Yes this occurs because an exception is being thrown from the service, but there are a few general guidelines that you can follow to correct this: I encountered the same issue and was not at all sure how to resolve it. I used to install and uninstall it with following command : installutil AutoSMS.exe Click Decimal, type '180000', and then click OK.Right-click ServicesPipeTimeout, and then click Modify.Name the new DWORD: ServicesPipeTimeout.With the control folder selected, right click in the pane on the right and - select new DWORD Value.Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control.Here is my main method code static void Main() Void checkForTime_Elapsed(object sender, ElapsedEventArgs e)ĭateTime dateTime = DateTime.ParseExact(Time, "HH:mm:ss", Protected override void OnStart(string args) (ĬheckForTime.Elapsed += new ElapsedEventHandler(checkForTime_Elapsed) Initially it was working fine, but after some changes in the service Code it start giving the error when I restart the service in Services.msc :Įrror 1053: the service did not respond to the start or control request in a timely fashionĬode: public partial class AutoSMS : ServiceBase I have created and installed a service a couple of times.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |