I created one windows serives
It gets the name of the service from web config file.
I used the below link for getting value from webconfig. http://www.codeprojec
sc create MyService binPath= "MyService.exe" DisplayName= "MyService" sc description MyService "My description"
Reference: http://support.microsoft.com/kb/251192
Followed marked answer and wasted an hour. it was simple using sc create command