I've recently created 3 NAV Server services and 3 Web services through using the SC command for a customer, and I've entered the account details into the "Log On" tab for each service, but when I go to start up the service is gives me the following error: Windows could not start the Microsoft Dynamics NAV Server LIVE service on the local computer. Error 2: The system cannot find the file specified.
I've looked everywhere, but can't find a definitive answer anywhere.
Any help will be appreciated.
Thanks.
0
Comments
I suggest you to check carefully your SC commands.
Also I want to pay your attention on syntaxis of SC; make sure that you have "space" between a parameter= and value. For instance, type='space here'share
For example, it should looks like following:
for NAVServer:SC CREATE "MicrosoftDynamicsNAV$NAV2009_R2_TEST" binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service_NAV2009_R2_TEST\Microsoft.Dynamics.Nav.Server.exe" DisplayName= "NAV2009_R2_TEST Server"
for NAVWebService:SC CREATE "MicrosoftDynamicsNAVWS$NAV2009_R2_TEST" binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service_NAV2009_R2_TEST\Microsoft.Dynamics.Nav.Server.exe $NAV2009_R2_TEST" DisplayName= "NAV2009_R2_TEST Web Service" type= share
Good luck
Would this be the problem, even though these files are in seperate folder locations.
So in your case it should look something like this:
Server:
SC CREATE "MicrosoftDynamicsNAV$Live" binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service_Live\Microsoft.Dynamics.Nav.Server.exe" DisplayName= "Server Live"
WebService:
SC CREATE "MicrosoftDynamicsNAVWS$Live" binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service_Live\Microsoft.Dynamics.Nav.Server.exe $Live" DisplayName= "Web Service Live" type= share
*the path to executable directory is fictional
Thanks frost_amo. That worked. I'd realised that I'd put the $Live next to .exe without a space, so that would explain why it couldn't start the service.