Multiple RTC on Same Machine with Startup Error Resolved


Hi all,

I was just thinking that there should an way that when we start an diffrent RTC Client that is not installed in machine, we should not get an error.

If you haven't read the post how to do it then go to the link.

Why it happens -

Role Tailored Client trys to pull up the last service that have been used succesfully to connect. As in earlier post we created mutiple services for multiple versions

and every service is running. So how the RTC client will figure out which service to run when we click on shortcut of a particular version RTC.

OLD Story -

If you read this post about the command prompt parameter for Role Tailored client then it would be easier to Understand.

How we make RTC Icon to identify which service file it should Pick?

My current system status -

Services -
Version             Port
NAV 2009            4046 & 4047
NAV 2009 SP1 5046 & 5047
NAV 2009 R2         6046 & 6047

Let's Search for a file Clientusersettings, you will find one HIDDEN file inside "C:\Users\username\AppData\Local\Microsoft\Microsoft Dynamics NAV\".
Lets see what this file contain, Below is the image for same.



If you want to find about all parameters then goto the link. I will describe only those are required right now.

Server -  consist of Navision Server Name where Service tier exist.
Server Instance - Instance of Service by default it is DynamicsNAV.
ServerPort -  Where you want to connect.
URL History -  THE URL Of navision that was last connected.

so what i will do is that i will copy this file and will save it inside the same folder where my .exe are present (C:\Program Files (x86)\Microsoft Dynamics NAV\60) 

and name them in the format like

FOR 2009         ClientUserSettings2009
FOR 2009 SP1 ClientUserSettings2009SP1
FOR 2009 R2   ClientUserSettings2009R2



Now lets do the configuration -

I went to Desktop where my shortcuts have been created for diffrent versions. I went to properties of every icon and at the end of the Target line i specified the

setting file that need to be used when i will try to run the cient.

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

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

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

The whole command in Target for NAV 2009 R2 is now -

"C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 R2 IN\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" -settings:"C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 R2 IN\ClientUserSettings2009R2.config"

Now when i will click on the particular icon it will start the specified RTC Database without an error.

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