Skip to main content

Running Multiple Web Service In NAV 2009, 2009 SP1 & 2009 R2.

Hi all,

In all the previous posts we have discussed about how to create multiple NAV Services to Run Multiple RTC for same or Different version of Role Tailored Client.

But we never discussed about how we can create multiple Web Services.

I required to Publish Multiple Web services and that is the reason i come up with this Post. Hope you will find it use of this post somewhere.

You might be thinking what new will be there as we create Navision services we can also create web services too.

Yeah you are right but there are some fix parameters will differentiate between a web service and a NAV Service. Lets see.

Here is a image of my services before i start -


As you can see currently there are two services, 1 web service and one NAV Service.

As you have gone through multiple post about creating multiple services some of the steps below are same -

1) Copy the service Folder - Default Path -C:\Program Files (x86)\Microsoft Dynamics NAV\60

2) Rename the copied to Folder say Service 2.


3) Open the config file of from the new folder created and change the below listed things -

   a) Port No. - (if Port sharing is not enabled).
   b) Server Name.
   c) Database Name.
   e) Server Instance.

  

4) Open Command Prompt, RUN as administrator.

5) Copy the command give below after changing the name and folder name as per your requirement.

SC CREATE "MicrosoftDynamicsNAVWS$WS2" binpath= "C:\Program Files (x86)\Microsoft Dynamics NAV\60\Service2\Microsoft.Dynamics.Nav.Server.exe $WS2" DisplayName= "Microsoft Dynamics NAV Business Web Services2" start= auto obj= "NT Authority\NetworkService" type= Share depend= NetTcpPortSharing

Where Bold Parameters are mandatory. 

These parameters identifies that the service to be created is a web service -
MicrosoftDynamicsNAVWS 
$WS2
type= Share

Copy the command in Command Prompt and hit enter.

Service will be created successfully.



If you skip the parameters specified above you might end up with the error message shown below.


So make sure that you keep in mind about the bold parameters and create service again. It will work fine.

Thanks & Regards,
Saurav Dhyani

Comments

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.