Dynamics NAV

Monday, 29 December 2014

How to create a new ServiceTier in NAV2013R2

     1. Create a copy from the service-tier folder. (for example C:\Program Files\Microsoft Dynamics NAV\71\Service)

     2. Change the settings in file Customsettings.config. (database and instance name)
  
     3. Change in query below the values NewServiceTierName into the new name of the service-tier 
        Execute below query With PowerShell (Run As Administrator)

     4. New-Service -Name 'MicrosoftDynamicsNAVServer$NewServiceTierName' -BinaryPathName '"c:\Program Files\Microsoft Dynamics NAV\71\NewServiceTierName\Microsoft.Dynamics.Nav.Server.exe" $NewServiceTierName /config "c:\Program Files\Microsoft Dynamics NAV\71\NewServiceTierName\Microsoft.Dynamics.NAV.Server.exe.config"' -DependsOn 'NetTcpPortSharing' -Description 'Service handling NewServiceTierName' -DisplayName 'Microsoft Dynamics NAV 71 Server [NewServiceTierName]' -StartupType Automatic

     5 Execute with Command Prompt (Run as Administrator) the query: (change also NewServiceTierName)

      sc config MicrosoftDynamicsNavServer$NewServiceTierName depend= NetTcpPortSharing/HTTP

      6  Go to Services.msc and change the service-account from the new created service-tier into ….

      7  Start new service-tier.