Information générale
Titre:
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement