RE: Windows Service - Error 1053
From: Richard Steele (RichardSteele_at_discussions.microsoft.com)
Date: 12/07/04
- Next message: Morten Wennevik: "Re: KeyCode Constants for C#?"
- Previous message: Tim Hoffeller: "Re: Path problem"
- In reply to: W AKthar: "Windows Service - Error 1053"
- Next in thread: Ignacio Machin \( .NET/ C# MVP \): "Re: Windows Service - Error 1053"
- Reply: Ignacio Machin \( .NET/ C# MVP \): "Re: Windows Service - Error 1053"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 7 Dec 2004 05:01:01 -0800
So far i have developed the following method
Create your WinApp as normal (look out for further replies from knowledgable
people re: System.ServiceProcess, re my question) you have to then setup a
windows service installer look at the following
http://www.c-sharpcorner.com/Code/2003/Oct/DynamicServiceInCSharp.asp to
create the service (I have used this to develop a standalone app that will
install any service)
Use installUtil (look in dotnet framework SDK) to install the service
installer and make sure the imagepath points at your executable -
When you have setup the service make sure that the app can interact with the
windows desktop (right click the service in service manager). So far that is
where i am. The app starts then closes after a timeout - this is where i am
stuck
Hope that helps, if you get further than me, let me know]
Richard
"W AKthar" wrote:
> Hi Richard,
>
> This not an anser to your question but more of a help
> question.
> I too have tried to create a WinForm windows service biut
> have not be able to. Can you please tell me how to do
> this??
>
>
> >-----Original Message-----
> >I have created a WinForm application that needs to be
> run as a windows
> >service (the PC is inaccesible by any user) i have
> successfully installed the
> >application as a windows service. When i start the
> service, i get the
> >following error
> >
> >Error 1053: The service did not respond to the start or
> control request in a
> >timely fashion
> >1. Is there anyway to extend the timeout period.? I use
> timed threads to
> >load a serial device driver and this takes time
> >
> >2. To enable the service to act correctly i assume that
> the application must
> >have OnStart and Stop methods. As the Winforms app
> already inherits
> >Windows.Forms.Form, how do i also make it inherit
> >System.ServiceProcess.ServiceBase so I can correctly
> start and stop (there
> >are cleanup operations on close)
> >
> >Thank you for your help in this matter
> >
> >..Net Framework v 1.1.4322.573
> >.
> >
>
- Next message: Morten Wennevik: "Re: KeyCode Constants for C#?"
- Previous message: Tim Hoffeller: "Re: Path problem"
- In reply to: W AKthar: "Windows Service - Error 1053"
- Next in thread: Ignacio Machin \( .NET/ C# MVP \): "Re: Windows Service - Error 1053"
- Reply: Ignacio Machin \( .NET/ C# MVP \): "Re: Windows Service - Error 1053"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|