Follow the article: http://www.c-sharpcorner.com/uploadfile/b1df45/web-api-self-hosting-using-windows-service/
Also make sure to follow the steps by the SO answer: http://stackoverflow.com/a/6382120
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
Follow the article: http://www.c-sharpcorner.com/uploadfile/b1df45/web-api-self-hosting-using-windows-service/
Also make sure to follow the steps by the SO answer: http://stackoverflow.com/a/6382120