Search:
Namespaces
Discussions
.NET v1.1
Feedback
.NET Service Error 1053
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.general
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
3dr (VIP)
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
Click here to reveal e-mail address
Reply to this message...
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
"3dr" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
> I am developing a service which I install and run on a number of servers.
It
[Original message clipped]
Reply to this message...
3dr
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" wrote:
[Original message clipped]
Reply to this message...
System.ServiceProcess.ServiceBase
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com