.NETGURU
.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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification