I'm having trouble starting a C# project as a service. When I manually try to execute the file, I get the following error message:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Topshelf, Version=3.3.154.0, Culture=neutral, PublicKeyToken=b800c4cfcdeea87b' or one of its dependencies. The system cannot find the file specified. at NFDataImporter.Program.Main(String[] args)
I've already checked the Topshelf dependency in Visual Studio, and it is set as a NuGet dependency. The project is then built via TeamCity, which has a full functional NuGet Install step that satisfyingly returns:
[14:53:31][restore] All packages listed in packages.config are already installed.
However, the above error still persists, and I'm at my wit's end here.
Can somebody please help me with this?