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
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
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?
thinknavblog.wordpress.com
You can configure port sharing dependence sing command line SC tool 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
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Are you using multi-tenancy? Does your service account have the db_owner access level to the database?
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Yeah I stumbled over this point as well at my first configuration. You will notice this when Tcp Portsharing Service will not start
thinknavblog.wordpress.com
All services are running under Network Service account. Yes, I'm using multi tenancy.
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>$
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03