Hi,
I'm going through the sample C# program on https://www.c-sharpcorner.com/UploadFile/b1df45/web-api-self. It's by Jasminder Singh and is titled "Web API Self-Hosting Using Windows Service: Part 1". I have successfully compiled it, and successfully installed it as a Windows Service (called WebAPISelfHosting). But when I try to start the service I get the message:
The WebAPISelfHosting service failed to start due to the following error:
The executable program that this service is configured to run in does not implement the service.
Any help is seriously appreciated. Thanks.

Joginder BangerRank #360 · 7K reputationPosted Feb 15, 2020, 2:42 AM EST
Curt Burdick8 reputationPosted Feb 20, 2020, 5:08 AM EST