General information
Title:
Windows Services and Error 1053
Trying to create a windows service, however when I start it it gives me this message immediately:
Error 1053: The Service did not respond to the start or control request in a timely fashion.
I’ve noticed I can completely eliminate that message if I rename the following two lines in red, however I need these to initialize some objects for this class.
How can I get around this error, I'm unable to proceed any further with this at this point as I'm not sure why it's erroring in the first place since the code seems to be fine?
public ReportScheduler()
{
// This call is required by the Windows.Forms Component Designer.
InitializeComponent();
Console.WriteLine("Initing");
settings = new SettingsReader();
num = settings.numberOfCompanys();
}
Thanks,
Matt
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only