Solved

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

Posted on 2004-09-12
5
22,895 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 12041068
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
ID: 12050561
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
ID: 12050703
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
ID: 12351578
PAQed, with points refunded (250)

GhostMod
Community Support Moderator
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Make the most of your online learning experience.
Simple Linear Regression
Progress

635 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