Link to home
Start Free TrialLog in
Avatar of 70sgirl
70sgirl

asked on

Net Start Service Not Working

I have a 2000 Pro SP4 computer with a customer service that runs on it.  It is set to automatic.  For some reason this service is crapping out periodically and I want to create a batch file to restart the service so my user can restart it easily (it doesn't even always start itself if the computer is rebooted).  The thing is that if I start the service from the services window it works fine.  If I net stop service, that works.  If I net start service, it doesn't work.  I get the following error:

Application Error
The instruction at "0x627241fd" referenced memory at "0x015b0065".  The memory could not be "read".
Click OK to terminate the program.

I just don't understand why the net start command is not working.  It does not work from a batch file, and it does not work from a command prompt.  I am signed in as administrator when this is happening.  Any suggestions?
Avatar of Brugh
Brugh

have you tried starting a different Service using Net Start.

If that service starts, it could just be the particular service you are running and you woudl need to contact your vendor for that.


Maybe starting the service from the location of the service? Could be a resource it needs can't be located and it doesn't handle it very well.

What I mean by this is that you'd make the current drive and directory to be where the service executable is located.
Avatar of rindi
It is also possible that this service requires another service to be restarted or stopped first too. Check in the service properties whether there are any dependencies.
'net start' works fine. It is the service you are starting that segfaults, probably for the same reson that causes "this service is crapping out periodically".
Avatar of 70sgirl

ASKER

I tried doing net start from the directory the .exe file is in from a command prompt and still got the same error.  There are no dependencies at all with this service.  Other services do start ok using net start.

I have already talked to the vendor and they also don't understand why it would work in the services window but not from command line.  They can't try to troubleshoot it until Tuesday, so I figured I'd give it a try.

jkr, are you basically saying that I'm wasting my time and need to let them sort it out?
In that case it is probably using the system account (or another user account), and when you try starting it manualy you are using the logged in user account, with which it doesn't work. Check inside the services, you should see as which user account it is starting. Maybe you will need to start it using "runas".
I am assuming that (you can never diagnose that for sure over a distance). Is there a DrWatson (http://support.microsoft.com/kb/185837) log?
Avatar of 70sgirl

ASKER

There are no errors in DrWatson
As a temporary workaround, you might try setting it to restart itself. If you double click on the service there is a tab named recovery. On this tab you can tell it to restart on failures.

This does not fix your problem as far as why it is failing, but it may keep you going until your vendor can give you a better answer.

set the options of first failure, second failure, and all subsequent failures to restart.
Avatar of 70sgirl

ASKER

I tried setting it to restart already and it throws the same memory could not be read error when it comes to that.
Have you checked the account it is run under and try to restart it under that account?
Avatar of 70sgirl

ASKER

It will start from the services screen, it just won't restart itself if it craps out and I cannot start it with a batch file or from a command prompt.
From the services screen it uses the credentials set in that screen, which can be different from the logged on user's credentials which are used when you start in from the command prompt. In the services applet you can set under which user account the service will run under. Many use the system account, others sometimes have a separate account specially for that app.
Avatar of 70sgirl

ASKER

I thought even starting using net start started the service with the account that it is setup with in the services screen.  You can't runas Local System can you?
Sorry, I was wrong, if it starts with the system account normally then it should start using the system account too if you start it from the command prompt. I've just tested it.
OK, simple test - try 'PsService' (http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/PsService.mspx) to launch that service. If the problem persists, the service is plain plain buggy as I suspected earlier.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 70sgirl

ASKER

The service didn't wind up being buggy, it just didn't support the net start command.  I can't remember the details now, but I wound up giving the user rights to start only that service.