Thursday, January 17, 2013

Using Multiple Services in one NAV Server


In continuation to the previous article of “Creating the multiple services in NAV”, we are going to see instances where multiple Services in NAV can be used effectively.

Where do we apply?
                Multiple Services can be used in connecting a Role Tailored Client to multiple databases through a Single NAV Server Computer.

How do we do?
The steps below indicate us on how to connect RTC with Second Instance:

1.       As a preliminary step, we need to change the name of the second service that was created. This must be done to identify the different services present in the local system.

2.       Create Name for the Second service:
a.       Go to the C:\Program Files\Microsoft Dynamics NAV\60\Service2 folder. Open the CustomSettings. Config File. By Default, this file will open with Visual Studio.
b.      Search for the following line: <add key="ServerInstance" value="DynamicsNAV" />
c.       Replace the “DynamicsNAV” with “DynamicsNAV2”
d.      Save the changes.

3.       With this new name we can avoid the conflict of selecting the different databases.
4.       Open the RTC.
5.       In the Role Center menu bar, Click Microsoft Dynamics NAV and then click “Select Server”.
6.       Type the second server name as DynamicsNAV2 and click Connect.
7.       Select the companies that are available in the connected database and then click connect.
8.       We are now going to working with the second database in RTC.

Note: Before starting to work with the second service we must activate port sharing so that multiple clients can share the same port number.

How to activate Port Sharing?
·         Open the Services (StartàRunàServices.msc).
·         Search the  Net.Tcp Port Sharing Service and go to its properties
·         On the General tab, select the Startup as Manual and click OK.
·         Start the Net.Tcp Port Sharing Service.

Note: We can also specify a separate port number for each Service. We then do not need to implement TCP port sharing. For Permission Issues See Configuring the Net.TCP Port Sharing Service.

No comments:

Post a Comment