My topshelf webapi project is working fine after I click F5 in Visual Studio 2013 Community Edition running on my LOCAL Windows 8 laptop.
I conduct various tests by sending it an HTTP REQUESTs from POSTMAN. I get RESPONSEs just fine.
My problem occurs when I take the following steps.
I copy the executable in my \bin dir to c:\temp.
From an ms-dos command promt (cursor at c:\temp=>=>=>) I run the following command;
MyExecutable.exe install
I get the following error:
System.IO.FileNotFoundException was unhandled
Message: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.
Additional information: Could not load file or assembly 'Microsoft.Practices.Unity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
or one of its dependencies. The system cannot find the file specified.
Please note. When I run the above dos command from the \bin directory, the exe DOES install itself as a Windows service SUCCESSFULLY into my laptop(I verify by going into Windows Services and it exists there). So, my point is that, I intend to deploy this in a typicall promotion, as to production from dev env. I assume it will produce the same error above; when I attemp to DEPLOY this to prod Windows server.