NAV 2009, 2009 SP1 and 2009 R2 in Same Machine


Hi all,

After Microsoft Released NAV 2009 Three Tier Architecture, we find issues while testing RTC on a version which is not installed.

Most of us uninstall current version and install the required version just for testing purpose.

I thought of creating multiple services for NAV 2009, NAV 2009 SP1 and NAV 2009 R2 in same machine with diffrent port numbers, so that we can run RTC also whenever required.

My Machine have NAV 2009 SP1 installed and i copied the Classic, Service and RoleTailored Client folder on my C Drive for Other two Versions.

I have created two Folders NAV2009 & NAV2009R2 inside "C:\Program Files\Microsoft Dynamics NAV\60".














For Creating Service for NAV 2009 i used the command-

SC CREATE MicrosoftDynamicsNAV2009 binpath= "C:\Program Files\Microsoft Dynamics NAV\60\NAV2009\Service\Microsoft.Dynamics.Nav.Server.exe" start= auto obj= "NT Authority\NetworkService" type= own

For Creating Service for NAV 2009 R2 i used the command-

SC CREATE MicrosoftDynamicsNAV2009R2 binpath= "C:\Program Files\Microsoft Dynamics NAV\60\NAV2009R2\Service\Microsoft.Dynamics.Nav.Server.exe" start= auto obj= "NT Authority\NetworkService" type= own











The Ports numbers i changed in CustomSetting.config file of three Services are-

Version Port Number
NAV 2009 6046 & 6047
NAV 2009 SP1       7046 & 7047
NAV 2009 R2 8046 & 8047









And after starting each service i Ran the .exe file from each RoleTailored Client Folder, which gives an error in the start where is says that version does not match, this is because it tries to connect to Default Port.



Once we change the port number it connect to the service.


















* Remember
1) I have used the service Logon Credentials to "NT Authority\NetworkService" and it will only work if the you have created the Network Service on the database you want to connect and set its schema to $ndo$navlistener.
   For more information how to do that read the post here.

2) The RTC client will work fine but only for RTC objects, i mean to say that if you have any report which is not developed for RTC Client, you will not be able to run it (beacause while opening a classic report from RTC,it looks in the registry for the path of classic client, which will be set to default for the version that is installed.)

3) FOR windows 7 User Please Run Command Prompt as RUN AS ADMINSTRATOR.

I will try to find a work around for the same and will post again.

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