c# - Installing windows service in windows server 2012 -


i have installed mail service in windows server 2012. service seems running onstart event not firing. have set logon account using domain user. have installed service seems working fine. difference between 2 services d mail service has db activities. can me ??

debugging windows services hard, when problem @ onstart method. i'd recommend using topshelf: http://topshelf-project.com/

this way can develop service console application easy debug. i'm sure you'd able spot problem if can debug method.

to install application windows service have run

{your.service.exe} install 

for details of command line options check out: http://topshelf.readthedocs.org/en/latest/overview/commandline.html


Comments