Skip to main content

NAV 2013 R2 - Multi-Tenancy Environment Web Client.

Hi all,

Till now we have seen how to implement Multi-Tenancy. Today let's discuss the web client in  Multi-Tenancy Environment.

Now what changes do i need to do to run a Web client for a specific Tenant. Suppose i want to run web client for all the Tenants.

Objective of Post -

1) Configure the Web Server for the Service MultiTenancy.
2) Access the web client with all Tenants.



Steps -

1. I will be using a separate Web Server Instance of Web Client Created in Earlier Post.
* How to create a separate instance of Web Server, Refer to Post.

My Web Server Instance Name is MyWebClient2 as shown below.



2. Right Click the Web Server Instance you want to Configure and select Explorer.
 Open web.Config File.



3. The Changes that we require are Port No and Service instance Name as shown below.

a) Search for <add key="ServerInstance" and Replace the Name as per your Service Instance Name.



b) Search for <add key="ClientServicesPort" and Replace the Port no of the Service Instance.



4. Save the File and Let's try to browse it. And yes i also end up with an error message.

"A tenant was not specified, but is needed because the system has multiple tenants. Contact your system administrator."



5.So what we need to do is Specify the Tenant ID that we want to use in Web Client.

The Default URL in my case is -

http://localhost:8080/MyWebClient2/WebClient/default.aspx

Which is something like -

http://ServerName:PortNo/WebServerInstance/WebClient/default.aspx

6. Now for MultiTenancy we need to change it to -

Generic Format -

http://ComputerName:Port/WebServerInstance/WebClient/list.aspx?tenant=TenantID

My case -

FOR IT Tenant -
http://localhost:8080/MyWebClient2/WebClient/list.aspx?tenant=IT

FOR FB Tenant -
http://localhost:8080/MyWebClient2/WebClient/list.aspx?tenant=FB

FOR Test Tenant -
http://localhost:8080/MyWebClient2/WebClient/list.aspx?tenant=Test


7. I will access Tenant IT in web browser and From File Menu Send Shortcut to Desktop.



8. I will copy and Paste The Shortcut Two Times (For two other Tenants) and change the properties of shortcut as shown below.



I just changed the Last Parameter in shortcut i.e Tenant ID.


**** OTHER URL FORMATS ***********

For Specific Company -
http://Servername:Port/WebServerInstance/WebClient/list.aspx?tenant=TenantID&company=CompanyName

For Specific Page -
http://ServerName:Port/WebServerInstance/WebClient/list.aspx?tenant=TenantID&page=ID

For Specific Report -
http://ServerName:Port/WebServerInstance/WebClient/report.aspx?tenant=TenantID&report=ID

Hope you find the Post useful.

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.