简体   繁体   中英

Unable to start windows service on a local machine(having windows xp)

I have installed a windows service(C#) on my local machine having windows XP installed in it.

But when I tried to start that service It gave me this error-

The MyWindowsService service on Local Computer has started and then stopped. Some Services stops automatically if they have no work to do, for example, the performance logs and Alert Service.

Do you have any idea why this service isn't started?

Regards,

nzahra

Add a System.Diagnostics.Debugger.Break() call at the start of your Main() method. Then you can step through your service to see what's going wrong.

Check the account this service is running under. The user account should have enough privileges to be able to logon on as a service. This link may help out as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM