.NET Service Error 1053

G

Guest

I am developing a service which I install and run on a number of servers. It
works on most machines I have installed it on, but I always get a 1053,
service will not start in a timely fashion message on one server.

I have reduced the code to almost nothing so as to remove almost all the
proper code.

My main function looks like this

static void Main()
{
System.ServiceProcess.ServiceBase[] ServicesToRun;
ServicesToRun = new System.ServiceProcess.ServiceBase[] { new
TigerPrintService() };
System.ServiceProcess.ServiceBase.Run(ServicesToRun);
}

My OnStart() is blank at the moment.

My TigerPrintService() constructor is currently empty also.

I can install the service but when I go to the service manager to start it I
get the 1053 error.

And since my OnStart() method is now empty I am at a loss as to what might
be causing this problem. As it seems to me it cannot be to do with
permisions.

By the way when I install the service I am currently doing so using the
local system login.

Many thanks for any thoughts or suggestions as to what might be causing this
problem.

Regards,
Derek

PS. I would appriciate it if you could also send me any details to
(e-mail address removed)
 
N

Nick Malik

normally this error comes from:
a) the account that the service is starting under doesn't have permission to
read from a required directory (usually the one where a dependent DLL is
located),
b) the account that the service is starting under doesn't have the privilege
to "run as a service" on the local box, or
c) the application is configured to run in the local logged on user account,
and no one is logged on.

In other words, this is nearly always a permissions issue. I know you state
that it just can't be... I have no answers. From my experience, I suggest
that you look again. Try running the service under a domain account. Log
in as that account to the machine to make sure you have the right to access
the machine and it's resources.

Sorry I couldn't be more helpful,
--- Nick
 
G

Guest

Nick,

Thanks for your response. And I have just been thinking about the code I
changed and even though I commented out almost all the code, I just realised
that I am still referencing a Word .NET component and it is probably this
that the permisions problem is arissing with.

Many thanks for your reply and I will look in to this more closely

Regards,
Derek

Nick Malik said:
normally this error comes from:
a) the account that the service is starting under doesn't have permission to
read from a required directory (usually the one where a dependent DLL is
located),
b) the account that the service is starting under doesn't have the privilege
to "run as a service" on the local box, or
c) the application is configured to run in the local logged on user account,
and no one is logged on.

In other words, this is nearly always a permissions issue. I know you state
that it just can't be... I have no answers. From my experience, I suggest
that you look again. Try running the service under a domain account. Log
in as that account to the machine to make sure you have the right to access
the machine and it's resources.

Sorry I couldn't be more helpful,
--- Nick

3dr said:
I am developing a service which I install and run on a number of servers. It
works on most machines I have installed it on, but I always get a 1053,
service will not start in a timely fashion message on one server.

I have reduced the code to almost nothing so as to remove almost all the
proper code.

My main function looks like this

static void Main()
{
System.ServiceProcess.ServiceBase[] ServicesToRun;
ServicesToRun = new System.ServiceProcess.ServiceBase[] { new
TigerPrintService() };
System.ServiceProcess.ServiceBase.Run(ServicesToRun);
}

My OnStart() is blank at the moment.

My TigerPrintService() constructor is currently empty also.

I can install the service but when I go to the service manager to start it I
get the 1053 error.

And since my OnStart() method is now empty I am at a loss as to what might
be causing this problem. As it seems to me it cannot be to do with
permisions.

By the way when I install the service I am currently doing so using the
local system login.

Many thanks for any thoughts or suggestions as to what might be causing this
problem.

Regards,
Derek

PS. I would appriciate it if you could also send me any details to
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top