Error when starting NAV and NAV Web Services

typerstutyperstu Member Posts: 6
edited 2011-08-05 in NAV Three Tier
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.

Comments

  • Sergii_ChernenkoSergii_Chernenko Member Posts: 14
    What is written in the event viewer?
  • typerstutyperstu Member Posts: 6
    Exactly the same message. It does give you an Event ID Code of 7000. I've googled this, and there is nothing that relates to NAV, and just seems to be aimed at general Windows Server issues.
  • frost_amofrost_amo Member Posts: 22
    It looks like you made a simple mistake in a path, when you used SC command.
    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
  • typerstutyperstu Member Posts: 6
    Just looking at the sc commands that we have, and comparing them to the examples you included and the only difference I can find is in the binpath section I have $Live, $Test, $Train after the Microsoft.Dynamics.Nav.Server.exe file.

    Would this be the problem, even though these files are in seperate folder locations.
  • typerstutyperstu Member Posts: 6
    These $Live, $Test, $Train are used in both the Server and Web services.
  • frost_amofrost_amo Member Posts: 22
    You should include $Live, $Test, or $Train only for WevService installation (not for server).

    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 :)
  • typerstutyperstu Member Posts: 6
    frost_amo wrote:
    You should include $Live, $Test, or $Train only for WevService installation (not for server).

    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.
Sign In or Register to comment.