Solved

service on Local Computer started then stopped. Somer services ...

Posted on 2004-09-12
5
22,867 Views
Last Modified: 2011-08-18
I'm setting up user-defined services and get the following error on Windows 2003 Server.

The <service name> service on Local Computer started then stopped. Somer services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service.

I'm simple settin up an application to run as a service. It's always worked on Windows 2000 using Windows 2000 Resource Kit (files instsrv.exe and srvany) and w/ Windows XP, also using the Windows 2000 Resource Kit.

On Windows 2003 Server, using its own resource kit, it fails w/ the above error.
However, If I use the instsrv.exe and srvany.exe files from the Windows 2000 Resource Kit on the Windows 2003 Server box the services run ok. Is there a known issue w/ the Resource Kit for Windows 2003?

I know this is a known error, but from the research I've done, there are no issues when setting up a simple application to run as a service.

Thanks in advanced.

0
Comment
Question by:macondo100
  • 2
5 Comments
 
LVL 22

Expert Comment

by:cookre
Comment Utility
2003 Server has many enhanced security provisions.  Well, not so much enhanced, rather a tightening of security by removing permissions that had previously been granted by default.

I suspect you're falling prey to that.

Presuming you've already checked the event logs, I'd suggest you trace program execution with your own log file to see where it's failing. A simple text file you open and close for each trace point will ensure that buffered messages at the point of failure won't be lost.
0
 

Author Comment

by:macondo100
Comment Utility
Got it resolved.
Actually, I was using (instructing someone to do so) the reg.exe from Windows 2003 Server to create certain keys, but it was failing. It always worked w/ NT, XP, and 2000 (using the Windows 2000 Resouce Kit's reg.exe). I wasn't able to figure it out because I was working w/ a couple of folks unfamiliar to the services and they sweared the keys were correct when they were actually not.
Thanks.
0
 
LVL 22

Expert Comment

by:cookre
Comment Utility
For what it's worth, that's one of the reasons I make my services self-installing.
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
Comment Utility
PAQed, with points refunded (250)

GhostMod
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now