Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Cannot start service" in SampleLicenseServer samp

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
absvm



Joined: 14 Dec 2017
Posts: 8

PostPosted: Thu Dec 14, 2017 10:22 am    Post subject: "Cannot start service" in SampleLicenseServer samp Reply with quote

Hi,

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
T

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.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Dec 14, 2017 9:27 pm    Post subject: Reply with quote

Have a look at these two stack overflow threads on issues with starting a service on a network drive:

https://stackoverflow.com/questions/134805/trying-to-get-a-windows-service-to-run-an-executable-on-a-shared-drive

https://stackoverflow.com/questions/182750/map-a-network-drive-to-be-used-by-a-service
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group