Monday, April 09, 2012

TopShelf Service won't install

I created a Windows service using TopShelf and for the life of me I couldn't get it to install. I followed the Command Syntax from http://topshelf-project.com/documentation/command-line-syntax/ and the install process ran with no error. But when I did net start myservice, I get "The service name is invalid." After a lot of head scratching, I realized I need to run the install process as an Administrator. Anyway, I put it here just in case someone has the same problem I have.


1 comment:

Anonymous said...

I also found I had to turn User Account Control off as well !