Cannot start service instance for NAV

Hi all,

I know that this is not a new topic, but I still didn't find solution for my problem.

When I try to start NAV service instance, he start and stop immediately. EventViewer show me this error message

eup9kt4bcvv4.png

Just to say that Net Tcp Port Sharing is running.

I tried almost everything to solve this: change ports in config file, in firewall. Install NAV again, start instalation in repair mode...

If anyone have any idea what else I can try, I would be very grateful.

Thanks,

Stefan

Answers

  • pleachim@outlook.compleachim@outlook.com Member Posts: 24
    Hey,
    I'm not sure if this is the typical error for a misconfigured port sharing but two questions ...

    1) Do you use a System User for you Service
    2) If you do not use a System User for you Service have you configured the SMSvcHost.exe.Config for this user?
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Having Port Sharing service running is not enough. ALL your NST servers configured to listen on the same port must be configured to depend on NetTcpPortSharing Service, and all must be restarted to take into account NetTcpPortSharing service dependence.

    You can configure port sharing dependence sing command line SC tool
    sc config <your NST service name> depend= HTTP/NetTcpPortSharing
    
    Alternatively, you can edit registry DependOnService key in HKLM\System\CurrentControlSet\Services\<Your NST service name>\ and add a line NetTcpPortSharing in here


    Also, as PleachiM mentioned, if you run NST under a regular Active Directory account you may have to add permissions for that account in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SMSvcHost.exe.config file, in /configuration/system.serviceModel.activation/net.tcp/allowAccounts.

    Just pay attention when modifying SMSvcHost.exe.config as there is such section already in it but it is commented out, if you open file in an editor like Notepad not highlighting XML syntax you will not easily see this
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    On a second thought, the error you have posted has nothing to do with port sharing.

    Are you using multi-tenancy? Does your service account have the db_owner access level to the database?
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • pleachim@outlook.compleachim@outlook.com Member Posts: 24

    Just pay attention when modifying SMSvcHost.exe.config as there is such section already in it but it is commented out, if you open file in an editor like Notepad not highlighting XML syntax you will not easily see this

    Yeah :smiley: I stumbled over this point as well at my first configuration. You will notice this when Tcp Portsharing Service will not start

  • tomasevicstefantomasevicstefan Member Posts: 51
    On a second thought, the error you have posted has nothing to do with port sharing.

    Are you using multi-tenancy? Does your service account have the db_owner access level to the database?

    All services are running under Network Service account. Yes, I'm using multi tenancy.
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Do you have SQL Server running on the same box a the NST server?

    Have you added the Network Account as a Login to the SQL, and then as an user to NAV database?

    If your SQL server is on another box this may be a bit tricky - you would need to add a Windows Login to the SQL server installation in
    a form your_domain\<your_NST_Server_box_name>$
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Sign In or Register to comment.