Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 22920
  • Last Modified:

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

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
macondo100
Asked:
macondo100
  • 2
1 Solution
 
cookreCommented:
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
 
macondo100Author Commented:
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
 
cookreCommented:
For what it's worth, that's one of the reasons I make my services self-installing.
0
 
GhostModCommented:
PAQed, with points refunded (250)

GhostMod
Community Support Moderator
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now