Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have written a windows service in c#. it works fine on windows XP but when I publish it on windows 2003, it is started automatically although I have changed it to manual! It keeps starting every time I stop it.
(This service is using a c++ dll which reads traps from WinSNMP Traps)
Is there any thing in Windows 2003 that starts my service!!!!

Any idea wellcome.

Thanks,
Aidin
Posted

1 solution

Can't be the problem caused by an unexpected termination of your service (such as unhandled exception)? It may be thereafter restarted automatically by OS.

It can be also started automatically if you have another service which depends on this one.
 
Share this answer
 
Comments
aidin Tajadod 18-Oct-10 15:04pm    
Thanks Voloda2,
Actually No, It might not. It is work fine with no errors and there is no service depends on my service.
The only thing I may think about is there might be a monitoring program on the server that starts my service after I stop it! It happens after 3 minutes after I stop my service!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900