Joined: 14 Dec 2017
|Posted: Thu Dec 14, 2017 10:22 am Post subject: "Cannot start service" in SampleLicenseServer samp
I am able to run the SampleLicenseServer sample project from the Infralution installation directory on C:\Program Files (x86)\Infralution\.. etc.
Then I copied the sample project to a network drive (Z:\), compiled again and followed the steps in the getting started (after uninstalling the service of course). Starting the License service then fails with the following message:
Exception thrown: 'System.InvalidOperationException' in System.ServiceProcess.dll
Unhandled Error: Cannot start service Sample License Service on computer '.'. at
at System.ServiceProcess.ServiceController.Start(String args)
at SampleLicenseService.Program.StartService() in Z:\DEV\Infralution\Samples\VS2010-2015\C#\SampleLicenseService\Program.cs:line 100
at SampleLicenseService.Program.Main(String args) in Z:\DEV\Infralution\Samples\VS2010-2015\C#\SampleLicenseService\Program.cs:line 189
The inner Exception of this exception says: "The system cannot find the file specified"
What file could this be?
It seems strange that it won't run from a different location. Running it from the location on the C: drive is fine, Z: is not.