Sunday, May 8, 2011

How to set up NAV 2009 SP1 and NAV 2009 R2 in the same server

It is possible to setup both NAV 2009 SP1 and NAV 2009 R2 in a single server. If you have already setup a NAV 2009 SP1 server and you are in need of setting up the NAV 2009 R2 server also in the same server (without uninstalling the NAV 2009 SP1), you could do it by following the below steps.

STEP 1: Do not un-install your existing NAV 2009 SP1 server installation. Instead, copy the following folders from you installation CD to your Program Files folder;

- Classic
- Role Tailored Client

It is obvious that you cannot make the folder names as ‘Classic’ and ‘Role Tailored Client’ as they are already available in the Program Files folder for running NAV 2009 SP1. Therefore, create them as ‘Classic R2’ or ‘Role Tailored Client R2’ as shown here.




STEP 1: Do not un-install your existing NAV 2009 SP1 server installation. Instead, copy the following folders from you installation CD to your Program Files folder;

STEP 2: Now it is time to create a service for NAV 2009 R2 – for the NAV Service Tier Application. You may be able to create a service by using below commands. To run this, you will have to use the command prompt of Windows.

To create a NAV Service;
SC CREATE "MicrosoftDynamicsNAVServer$R2" binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service R2\Microsoft.Dynamics.Nav.Server.exe" start= auto DisplayName= "Microsoft Dynamics NAV Server R2"

To Delete Service:
SC DELETE "MicrosoftDynamicsNAVServer$R2"

To create a NAV Web Service;
SC CREATE "MicrosoftDynamicsNAVWS$SrvR2" binpath= "C:\Program Files (x86)\Microsoft Dynamics NAV\60\Service R2\Microsoft.Dynamics.Nav.Server.exe $SrvR2" start= auto obj= "NT Authority\NetworkService" DisplayName= "NAV2009R2 Web Services" type= share
netsh http add urlacl url=http://+:7049/DynamicsNAVR2 user="NT Authority\NetworkService"

STEP3: Once the above step is carried out, you may need to manually register some of the new DLL file only available with R2 version. This could be done by using the ‘regasm’ command on your console.
For example, for registering the DLL, Microsoft.Navision.Mail.dll, you can use the command as follows;

C:\windows\microsoft.net\framework\v2.0.50727\regasm /codebase /tlb:Microsoft.Navision.Mail.tlb Microsoft.Navision.Mail.dll
STEP4: Once you see that you can compile all objects in the database, you could start accessing R2 Client. One of the best practices among the options would be creating a separate shortcut for the R2 Client.

The above exercise may be very useful, when your users are in need of testing /checking the new features of the NAV 2009 R2 version. May be you are in a situation where you need users to see the new features of NAV 2009 R2. May be you are in need of users to check the system after upgrading from NAV 2009 SP1 to R2. Regardless of the intention, this will work for you!

Business Central SaaS Extension Design: Implementing Plant Tracking with AL Event Subscribers

  Extending Business Central SaaS: Plant Tracking Using AL Extensions  1️⃣ Problem Statement In many manufacturing and service-oriented or...