Skip to main content

NAV 2013, NAV 2009 R2, NAV 2009 SP1 & NAV 2009 on Same Machine with Same Ports


Hi all,

As discussed in my most of the Earlier post when we install NAV 2013, it is the best practice to Uninstall all
previous version that are installed.

Reason - When we install multiple versions of Navision after 2009 and try to run the object from the object designer it gives us an error message.

Today we will be discussing the extended part of the Posts -
1) NAV 2009 SP1 and R2 on Same Machine
2) NAV 2009 SP1 & R2 on same machine with Issue Resolution

As new version of NAV, i.e NAV 2013 have been released so we need to change some of the setting.



First of all, i will delete all the services that i have created for Post 1 and 2 by using below command -

1) Run Command Prompt as administrator.
2) Run The command sc Delete <ServiceName>
Service name can be found in services.msc.

Now i will un-install the NAV 2009 R2 Version from my Computer.

Steps to configure the NAV 2013 and other version on same machine-

1) Install NAV 2013 on your machine, I installed the Demo Version of Product.
2) The components get installed in  c:\Program Files\Microsoft Dynamics NAV\70.

3) After successful Installation i created a new folder Named 60_OLD in c:\Program Files\Microsoft Dynamics NAV\ Directory.

4) I Copied the RTC and Service Files and ClientUserSettings Files of NAV 2009, NAV 2009 SP1 & NAV 2009 R2 inside New Folder as shown below.



 * If you don't know how to create ClientUserSetttingsFile Please read the post 2.

5) Now the Default Service that Comes with NAV 2013 have not set to have port sharing and if we want to use the only port that is 7046 we need to enable it.

6) Open the command prompt as administrator and extract the service name from services.msc as shown below.


7) Run the following command as shown above.

sc config MicrosoftDynamicsNavServer$DynamicsNAV70 depend= NetTcpPortSharing/HTTP

* This command will add dependency of Port Sharing on the New service created.

8) Now we will create the service for NAV 2009, SP1 & R2, we will use the same port 7046 for all the services.
(If you are following all the steps as listed above then please read ahead otherwise in the command change the binpath as the path of the folder where you kept the RTC and Service Folder)

9) Here is the command to create a service for NAV 2009.

SC CREATE MicrosoftDynamicsNavServer2009 binpath= "C:\Program Files (x86)\Microsoft Dynamics NAV\60_OLD\NAV 6.0 IN\Service\Microsoft.Dynamics.Nav.Server.exe" start= auto obj= "NT Authority\NetworkService" type= own depend= NetTcpPortSharing

10) Here is the command to create a service for NAV 2009 SP1.

SC CREATE MicrosoftDynamicsNavServer2009SP1 binpath= "C:\Program Files (x86)\Microsoft Dynamics NAV\60_OLD\NAV 6.0 SP1 IN\Service\Microsoft.Dynamics.Nav.Server.exe" start= auto obj= "NT Authority\NetworkService" type= own depend= NetTcpPortSharing

11) Here is the command to create a service for NAV 2009 R2.

SC CREATE MicrosoftDynamicsNavServer2009R2 binpath= "C:\Program Files (x86)\Microsoft Dynamics NAV\60_OLD\NAV 6.0 R2 IN\Service\Microsoft.Dynamics.Nav.Server.exe" start= auto obj= "NT Authority\NetworkService" type= own depend= NetTcpPortSharing 



12) Now we need to start the Service NetTcpPortSharing as all the service created above depends on this service. You can find the service in Services.msc.

13) As in NAV 2013 Xp_Ndo.dll Concept has been removed but we need it for our older version. So for adding Xp_Ndo please refer  Post 1 Xp_Ndo & Post 2 Xp_Ndo.

14) Now lets change the config file of the Service i.e Custom Settings. (Remember while doing this you need to run Notepad as administrator)

15) As shown below -
    I have three database for 2009, SP1 and R2.
    I have Used the same ports 7046 For all services.
    But i have changed the Service instance
            DynamicsNAV2009,DynamicsNAV2009SP1,DynamicsNAV2009R2 Respectively.




16) Once done the part is left to change the ClientUserSettings Files so that we don't get a Startup Error.

17) As shown below i have changed the config files too with proper instance and port.


* if you don't know how to create it refer to post.

18) Now i will create shortcuts of NAV 2009, SP1, R2 & 2013 in Desktop. For 2009, SP1 & R2 i will create shortcuts from the same location where i copied them in my case for 2009 it is- C:\Program Files (x86)\Microsoft Dynamics NAV\60_OLD\NAV 6.0 IN\RoleTailored Client.



19) Now the part left is just to map the clientusersetting files with these shortcuts.

20) In the end of target line of the shortcut properties i just appended these strings -

For 2009
-settings:"C:\Program Files (x86)\Microsoft Dynamics NAV\60_OLD\NAV 6.0 IN\ClientUserSettings2009.config"

For 2009 SP1
-settings:"C:\Program Files (x86)\Microsoft Dynamics NAV\60_OLD\NAV 6.0 SP1 IN\ClientUserSettings2009SP1.config"

For 2009 R2
-settings:"C:\Program Files (x86)\Microsoft Dynamics NAV\60_OLD\NAV 6.0 R2 IN\ClientUserSettings2009R2.config"

19) Start the services will proper credentials in Logon Tab.

20) Click on all the icons in desktop and yeah we have all RTC versions working on same port in same machine as shown below.



* Remember after following all these steps you will not Run Objects from Object Designer for NAV 2009, SP1 and R2.

Let me know if anyone face any issues, or how you like this post.

Waiting for your feedback.

Thanks & Regards,
Saurav Dhyani
http://saurav-nav.blogspot.in/

Comments

  1. Thank you so much. really appreciated..

    ReplyDelete
  2. Much Appreciated..

    ReplyDelete
  3. Superb!
    Thank you very much!

    ReplyDelete
  4. Hi Saurav

    I have installed Nav2013 recently. Now i have to run Nav2009 R2(RTC) also. So I'm trying steps you have given above. But i cant proceed Step 13 and after step 17. Kindly guid me to create for multiple instance in the same port. Thank You.

    With Regards
    Kavi

    ReplyDelete
    Replies
    1. Hi Kavi,

      Let me know the detailed issue. If possible drop me a mail on postsaurav@gmail.com.
      If required you can call me on +91-7838267334 (any time after 6 on 24-mar-2013 or today after 10).

      Regards,
      Saurav Dhyani

      Delete

Post a Comment

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searchi...

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.