Cannot start service instance for NAV

tomasevicstefan
Member Posts: 51
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
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
0
Answers
-
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?0 -
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 toolsc 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-030 -
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-030 -
Slawek_Guzek wrote: »
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
YeahI stumbled over this point as well at my first configuration. You will notice this when Tcp Portsharing Service will not start
0 -
Slawek_Guzek wrote: »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.0 -
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-030
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions