blah blah blah is here! blah blah » Close

up0down
link

Hello Everyone,

I just wrote one small windows service application. In the start method i am trying to run an exe. It is working well in Windows XP and Windows 2003 Server. But it is not working in Windows Vista. Following is the code which i have written for this.

System.Diagnostics.Process.Start(@"D:\ServiceEngineEXE\ServiceEngine.exe");

When i am trying to strat this service in Windows Vista, it is throwing an error.

The [service name] service on local computer started and then stopped. Some Services stop automatically if they are not in use by another services or programs.

The vista which i am running the service is a fresh machine.

Can anyone of you please let me know what should i do to solve this problem.

Thanks
Anil Kumar

last answered one year ago

1 answers

up0down
link

When stuff works on earlier versions of Windows but not on Vista, then it's usually a permissions issue.

If you're running this service under an account which doesn't have administrative privileges, then I'd try running it under one that does or add the account to the administrators group and reboot your machine.

Feedback