PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Windows Service cannot start. Error 1053:

 
 
=?Utf-8?B?UGV0ZXJX?=
Guest
Posts: n/a
 
      24th May 2005
I have written a Windows Service which uses a FileWatcher to process file
dropped in a directory specified in a config file. If directory does not
exist it creates it in the constructor.

This works fine on my machine. We have created a new domain user specially
for the service that is added to the local adminstrators group and so should
have all the permissions needed to do anything related to files and messaging.

The service works fine on the machine on which it was developed. I created
an installer and rolled it out to a machine where our testers can access it.
From there it installs successfully on a test machine for which we have an
image to fall back to that is bare of any installations except the framework
(v1.1)

The machine has the service domain user added to the local administrators
group.
It works. Service installs using installutil.exe, is visible in services in
ComputerManagement snap-in. Service starts and does all that is supposed to.
Stop, uninstall, etc re-install and do it all again any number of times over.

At a particular point in time, the service ceases to start but only on the
test machine. It installs fine, but on attempting to start returns a 1053
error.

Check user, is OK, password not expired etc. Nothing appears wrong. Try
everything that we can think of without success. Wasted a day of 2 peoples
time trying to resolve this.

Finally roll operation system back to stored image and everything works
again.

Why?
How can we be sure of the ability of the service to do what we need it to do
without worrying if it will start at all? Or simply to not start at some
stage!

The only thing that might make any sense is that rollouts by system
administrators to tighten down security may have affected the ability to use
the user account, but again the question is how and why?

Following any of the articles related to Error 1053 would lead one to think
that SP1 for version 1.1 of the framework was not installed. Installed it.
Uninstalled service, reboot, reinstall, run installutil.exe from
....\framework\v1.1.4322, installs OK and creates directories as per
constructor. Service still will not start.

Why should it be necessary to roll back to a clean operating system
installation? We have no confidence that if we roll this out to a server for
production that it will install and start as required

This is being thrown back to me as a developer but I think the issue is
operating system stability.

Thoughts, comments, anything that might help would be very welcome right now!
:-)

cheers
--
PeterW
 
Reply With Quote
 
 
 
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      24th May 2005

"PeterW" <(E-Mail Removed)> wrote in message
news:442223BA-8652-4FBC-9A85-(E-Mail Removed)...
>I have written a Windows Service which uses a FileWatcher to process file
> dropped in a directory specified in a config file. If directory does not
> exist it creates it in the constructor.
>
> This works fine on my machine. We have created a new domain user
> specially
> for the service that is added to the local adminstrators group and so
> should
> have all the permissions needed to do anything related to files and
> messaging.
>
> The service works fine on the machine on which it was developed. I
> created
> an installer and rolled it out to a machine where our testers can access
> it.
> From there it installs successfully on a test machine for which we have an
> image to fall back to that is bare of any installations except the
> framework
> (v1.1)
>
> The machine has the service domain user added to the local administrators
> group.
> It works. Service installs using installutil.exe, is visible in services
> in
> ComputerManagement snap-in. Service starts and does all that is supposed
> to.
> Stop, uninstall, etc re-install and do it all again any number of times
> over.
>
> At a particular point in time, the service ceases to start but only on the
> test machine. It installs fine, but on attempting to start returns a 1053
> error.
>
> Check user, is OK, password not expired etc. Nothing appears wrong. Try
> everything that we can think of without success. Wasted a day of 2
> peoples
> time trying to resolve this.
>
> Finally roll operation system back to stored image and everything works
> again.
>
> Why?
> How can we be sure of the ability of the service to do what we need it to
> do
> without worrying if it will start at all? Or simply to not start at some
> stage!
>
> The only thing that might make any sense is that rollouts by system
> administrators to tighten down security may have affected the ability to
> use
> the user account, but again the question is how and why?
>
> Following any of the articles related to Error 1053 would lead one to
> think
> that SP1 for version 1.1 of the framework was not installed. Installed
> it.
> Uninstalled service, reboot, reinstall, run installutil.exe from
> ...\framework\v1.1.4322, installs OK and creates directories as per
> constructor. Service still will not start.
>
> Why should it be necessary to roll back to a clean operating system
> installation? We have no confidence that if we roll this out to a server
> for
> production that it will install and start as required
>
> This is being thrown back to me as a developer but I think the issue is
> operating system stability.
>
> Thoughts, comments, anything that might help would be very welcome right
> now!
> :-)
>
> cheers
> --
> PeterW



Error 1053 means that your service did not return from the OnStart method
within the (default) 30 seconds delay imposed by the SCM.
So I suggest you check the method and make sure you return as soon as
possible from it.

Willy.


 
Reply With Quote
 
=?Utf-8?B?UGV0ZXJX?=
Guest
Posts: n/a
 
      24th May 2005
Willy

I forgot to mention that the start does not wait 30 seconds as it should but
returns almost immediately, like 2 seconds or so. Not enough time to do
anything much and certainly not a time out.
--
PeterW


"Willy Denoyette [MVP]" wrote:

>
> "PeterW" <(E-Mail Removed)> wrote in message
> news:442223BA-8652-4FBC-9A85-(E-Mail Removed)...
> >I have written a Windows Service which uses a FileWatcher to process file
> > dropped in a directory specified in a config file. If directory does not
> > exist it creates it in the constructor.
> >
> > This works fine on my machine. We have created a new domain user
> > specially
> > for the service that is added to the local adminstrators group and so
> > should
> > have all the permissions needed to do anything related to files and
> > messaging.
> >
> > The service works fine on the machine on which it was developed. I
> > created
> > an installer and rolled it out to a machine where our testers can access
> > it.
> > From there it installs successfully on a test machine for which we have an
> > image to fall back to that is bare of any installations except the
> > framework
> > (v1.1)
> >
> > The machine has the service domain user added to the local administrators
> > group.
> > It works. Service installs using installutil.exe, is visible in services
> > in
> > ComputerManagement snap-in. Service starts and does all that is supposed
> > to.
> > Stop, uninstall, etc re-install and do it all again any number of times
> > over.
> >
> > At a particular point in time, the service ceases to start but only on the
> > test machine. It installs fine, but on attempting to start returns a 1053
> > error.
> >
> > Check user, is OK, password not expired etc. Nothing appears wrong. Try
> > everything that we can think of without success. Wasted a day of 2
> > peoples
> > time trying to resolve this.
> >
> > Finally roll operation system back to stored image and everything works
> > again.
> >
> > Why?
> > How can we be sure of the ability of the service to do what we need it to
> > do
> > without worrying if it will start at all? Or simply to not start at some
> > stage!
> >
> > The only thing that might make any sense is that rollouts by system
> > administrators to tighten down security may have affected the ability to
> > use
> > the user account, but again the question is how and why?
> >
> > Following any of the articles related to Error 1053 would lead one to
> > think
> > that SP1 for version 1.1 of the framework was not installed. Installed
> > it.
> > Uninstalled service, reboot, reinstall, run installutil.exe from
> > ...\framework\v1.1.4322, installs OK and creates directories as per
> > constructor. Service still will not start.
> >
> > Why should it be necessary to roll back to a clean operating system
> > installation? We have no confidence that if we roll this out to a server
> > for
> > production that it will install and start as required
> >
> > This is being thrown back to me as a developer but I think the issue is
> > operating system stability.
> >
> > Thoughts, comments, anything that might help would be very welcome right
> > now!
> > :-)
> >
> > cheers
> > --
> > PeterW

>
>
> Error 1053 means that your service did not return from the OnStart method
> within the (default) 30 seconds delay imposed by the SCM.
> So I suggest you check the method and make sure you return as soon as
> possible from it.
>
> Willy.
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP! VB.net Service error: "Could not start service on local computer. Error 1053: The service did not respond to the start or control request in a timely fashion." mrwoopey Microsoft Dot NET Framework 4 21st Aug 2008 07:27 PM
Windows XP Proffesinal service start error 1053 alp Windows XP General 0 30th Apr 2008 02:35 PM
1053 error trying to start my .NET windows service =?Utf-8?B?Sm9obi5ORVQ=?= Microsoft Dot NET 7 26th Apr 2007 12:21 PM
Error 1053- service will not start. Keith Microsoft Windows 2000 Terminal Server Applications 0 2nd Mar 2005 08:06 PM
.NET C# service error 1053, service could not start in timely fash =?Utf-8?B?M2Ry?= Microsoft ASP .NET 2 7th Sep 2004 11:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:51 AM.