Does anyone know if there is a way of having a dynamic startup object
in a .NET application? I have a windows application which I would like
to be able to run as a Windows Forms app or a Windows service - is this
possible?
When I set the startup object to the Service, the service starts
correctly, but I cannot then run it as a Windows Forms application. If
I set the startup object to a form, the Forms application runs, but I
cannot start the service. I get an error saying that 'The service did
not respond to the start or control request in a timely fashion'.
Any suggestions would be appreciated.
Regards
Mark.
in a .NET application? I have a windows application which I would like
to be able to run as a Windows Forms app or a Windows service - is this
possible?
When I set the startup object to the Service, the service starts
correctly, but I cannot then run it as a Windows Forms application. If
I set the startup object to a form, the Forms application runs, but I
cannot start the service. I get an error saying that 'The service did
not respond to the start or control request in a timely fashion'.
Any suggestions would be appreciated.
Regards
Mark.