次の方法で共有


Walkthrough: Installing the Microsoft Dynamics NAV Web Server Components on Three Computers

In this walkthrough, you will install Microsoft Dynamics NAV Web client and Microsoft Dynamics NAV Tablet client in a four tier production environment, with the Microsoft Dynamics NAV Web client, Microsoft Dynamics NAV Server, and Microsoft SQL Server with Microsoft Dynamics NAV database components on three separate computers as shown in the following illustration.

NAV Web client setup on four tiers

Computer Installed operating system and software

NAVSQL

Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows 8, or Windows Server 2012 with the 64-bit edition of SQL Server 2008 R2 installed.

You will install Microsoft Dynamics NAV database components on this computer.

Hh997088.note(en-us,NAV.80).gifNote
If SQL Server is not present, then Setup automatically installs the 64-bit edition of SQL Server Express 2012, which you can use for prototyping, developing, and testing. We recommend that you use SQL Server 2008 R2 in production environments. For more information, see Installation Considerations for Microsoft SQL Server.

NAVSERVER

Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows 8, or Windows Server 2012.

You will install Microsoft Dynamics NAV Server on this computer.

NAVWEB

Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows 8, or Windows Server 2012.

Internet Information Services 7 or Internet Information Services 8.

Hh997088.note(en-us,NAV.80).gifNote
Microsoft Dynamics NAV Setup can automatically enable IIS and the IIS features that are required for the Microsoft Dynamics NAV Web client.

You will install the Microsoft Dynamics NAV Web Server components on this computer.

DEVICE

A device with an Internet connection and a supported browser. For a list of supported browsers, see Microsoft Dynamics NAV 2013 Requirements.

Note

For a complete list of supported hardware and software, see Microsoft Dynamics NAV 2013 Requirements.

The key characteristic of this walkthrough is that the Microsoft Dynamics NAV Web Server components and Microsoft Dynamics NAV Server are installed on separate computers. Because of the multiple computers involved when a device tries to access the Microsoft Dynamics NAV Web client over the Internet to manage Microsoft Dynamics NAV data, additional configuration is required to set up this environment compared to an environment where all components are on a single computer.

About This Walkthrough

After completing this walkthrough, you will have a functioning four-tier installation on three computers. The installation uses the CRONUS International Ltd. demonstration database, which contains the CRONUS International Ltd. company. Windows authentication is used for authenticating users who try to access the Microsoft Dynamics NAV Web client.

This walkthrough illustrates the following tasks:

  • Using a domain user account as the service account for Microsoft Dynamics NAV Server and the Microsoft Dynamics NAV database.

  • Installing the Microsoft Dynamics NAV Database Components

  • Starting the SQL Server Browser Service on the SQL Server

  • Installing Microsoft Dynamics NAV Server

  • Installing the Microsoft Dynamics NAV Web Server Components

  • Configuring Constrained Delegation from the Microsoft Dynamics NAV Web Client to Microsoft Dynamics NAV Server

  • Allowing Inbound Communication on the Microsoft Dynamics NAV Web Client Port Through the Windows Firewall

  • Opening the <token xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">nav_web</token>

Prerequisites

To complete this walkthrough, you will need:

  • Microsoft Dynamics NAV 2015 installation media. For example, this can be a DVD or a network drive that contains the Microsoft Dynamics NAV 2015 installation files.

  • Three computers that are configured as described in the introduction.

    On the NAVWEB computer, you must enable IIS with the required features for the Microsoft Dynamics NAV Web client. For instructions about how to install Internet Information Services, see How to: Install IIS.

    Note

    Instead of installing and configuring IIS manually, you can use Microsoft Dynamics NAV Setup to install IIS and enable the required features, as described in this walkthrough.

  • A domain user account for accessing Microsoft Dynamics NAV Server and Microsoft Dynamics NAV database on the Microsoft SQL Server. The user account must have the following permissions:

    • Permission to log on as a service on the computer where you will install Microsoft Dynamics NAV Server and the computer that is running SQL Server.

    • Permission to register Service Principal Names (SPNs) on itself.

      If the user account does not have this permission, then you must register SPNs for the account manually.

    For information about how to create a domain user account, see Create a New User Account in the TechNet Library. For information about how to enable permission to log on as a service and register SPNs, see Provisioning the Microsoft Dynamics NAV Server Account.

    Note

    By default, Microsoft Dynamics NAV Setup uses NETWORK SERVICE as the service account. You can use NETWORK SERVICE instead of a domain user account, but this is considered less secure. If you want to use NETWORK SERVICE, then you do not need this prerequisite.

Story

Viktor is a Microsoft Certified Partner working for CRONUS International Ltd. He has been tasked with deploying Microsoft Dynamics NAV Web client for customer. To meet the customer's network needs and requirements, Viktor will install the Microsoft Dynamics NAV Web client, Microsoft Dynamics NAV Server, and SQL server with Microsoft Dynamics NAV database components on separate computers. For security reasons, he will use a domain user account instead of the Network Service account as the service account for Microsoft Dynamics NAV Server. He will configure the environment to authenticate users who are using Windows Authentication.

Installing the Microsoft Dynamics NAV Database Components

In this procedure, you run Microsoft Dynamics NAV 2015 Setup to install the SQL Server Database components for Microsoft Dynamics NAV, including the CRONUS International Ltd. demonstration database. During setup, you will assign the domain user account as the service account for the database.

Note

If you already have an existing Microsoft Dynamics NAV database that you want to use, you can skip this procedure.

To install the Microsoft Dynamics NAV database components and the demo database

  1. On the NAVSQL computer, access the Microsoft Dynamics NAV installation media.

  2. Double-click the setup.exe file to start the Microsoft Dynamics NAV Setup wizard.

  3. On the Welcome to Microsoft Dynamics NAV 2015 Setup page, choose Next.

  4. To accept the license terms, choose I accept.

  5. On the Microsoft Dynamics NAV Setup page, choose Choose an installation option.

  6. On the Choose an installation option page, choose Custom.

  7. On the Customize the installation page, select SQL Server Database Components box, and then select Run all from my computer.

    This specifies that you want to install this component and all subcomponents. In this case, there is a single subcomponent, which is the CRONUS International Ltd. demonstration database.

  8. Choose Next.

  9. On the Specify parameters page, set the Server account to the domain user account that you created for and the Microsoft Dynamics NAV database and Microsoft Dynamics NAV Server.

  10. In the SQL Database box, type a name for the Microsoft Dynamics NAV database. For this walkthrough, type Demo Database NAV (8-0).

    You can keep the default values for the other parameters.

  11. Choose Apply.

    Setup installs the database components.

  12. After the installation is complete, choose Close.

A database instance that is named NAVDEMO has been created on the SQL Server. The database instance includes the Demo Database NAV (7-1) database.

Starting the SQL Server Browser Service on the SQL Server

When you installed the Microsoft Dynamics NAV database components, the CRONUS International Ltd. demonstration database was installed on a database instance named NAVDEMO. Because you are using a named database instance and Microsoft Dynamics NAV Server is on a separate computer, you must enable and run the SQL Server Browser Service on the SQL Server to ensure the Microsoft Dynamics NAV Server can connect to the database instance.

To start SQL Server Browser Service

  1. On the NAVSQL computer, to run the SQL Server Configuration Manage, do the following.

    1. On the Start menu, choose All Programs, and then choose Microsoft SQL Server 2008 R2.

    2. Choose Configuration Tools, and then choose SQL Server Configuration Tool.

  2. In SQL Server Configuration Manager, in the navigation pane on the left side, choose SQL Server Service.

  3. Right-click SQL Server Browser, and then choose Properties.

  4. On the Services tab of the SQL Server Browser dialog box, set the Start mode to Automatic.

  5. Choose OK to return to the SQL Server Configuration Manager main page.

  6. Right-click SQL Server Browser again, and then choose Start.

Installing Microsoft Dynamics NAV Server

In this procedure, you use Microsoft Dynamics NAV 2015 Setup to install Microsoft Dynamics NAV Server on the NAVSERVER computer. During setup, you will assign the domain user account as the service account for Microsoft Dynamics NAV Server.

Note

If you already have a Microsoft Dynamics NAV Server that you want to connect to, you can skip this procedure.

To install Microsoft Dynamics NAV Server

  1. On the NAVSERVER computer, access the Microsoft Dynamics NAV installation media.

  2. Double-click the setup.exe file to start the Microsoft Dynamics NAV Setup wizard.

  3. On the Welcome to Microsoft Dynamics NAV 2015 Setup page, choose Next.

  4. To accept the license terms, choose I accept.

  5. On the Microsoft Dynamics NAV Setup page, choose Choose an installation option.

  6. On the Choose an installation option page, choose Server.

  7. On the Specify parameters page, in the Server section, set the Server Account parameter to the domain user account that you created for Microsoft Dynamics NAV Server.

  8. In the Account password parameter, type the password for the domain user account.

  9. In the SQL Server Database Components section, set the following parameters for the Microsoft Dynamics NAV database.

    Parameter Value

    SQL Server

    NAVSQL

    SQL Server Instance

    NAVDEMO

    SQL Database

    Demo Database NAV (7-1)

    Note

    Substitute the values in the table with the values for your installation as needed.

  10. Default values are sufficient for all other parameters. Choose Apply to save your setting information. Setup installs the components.

  11. After the installation is complete, choose Close.

Installing the Microsoft Dynamics NAV Web Server Components

In this procedure, you use Microsoft Dynamics NAV 2015 Setup to install the Microsoft Dynamics NAV Web Server components to the NAVWEB computer.

To install Microsoft Dynamics NAV Web Server Components with Setup

  1. On the NAVWEB computer, access the Microsoft Dynamics NAV installation media.

  2. Double-click the setup.exe file to start the Microsoft Dynamics NAV Setup wizard.

  3. Choose Next.

  4. To accept the license terms, choose I accept.

  5. On the Microsoft Dynamics NAV Setup page, choose Choose an installation option.

  6. On the Choose an Installation Option page, choose Custom.

  7. On the Customize the Installation page, select NAV Web Server Components, and then select Run from My Computer.

  8. Choose Next to go to the Specify Parameters page.

  9. On the Specify parameters page, in the Server Name box, type the name of the computer that is running Microsoft Dynamics NAV Server, in this case, NAVSRV.

  10. In the Web Server Components section, set the Port field to 8080.

  11. Set the Install IIS prerequisites parameter to Install.

    This enables the IIS features that are required for the Microsoft Dynamics NAV Web client on the computer. For more information about this parameter, see Using Microsoft Dynamics NAV 2013 Setup to Install IIS Features.

  12. Choose Apply to complete the installation.

  13. When Setup is finished, choose Close.

    A website that has the name Microsoft Dynamics NAV 2015 Web Client has been installed on IIS. The website uses port 8080. A website that has the name Microsoft Dynamics NAV 2015 Web Client has been installed on IIS. The website includes a web server instance for Microsoft Dynamics NAV Web client that has the name DynamicsNAV80. The default physical path of the web server instance is C:\inetpub\wwwroot\DynamicsNAV80\.

Configuring Constrained Delegation from the Microsoft Dynamics NAV Web Client to Microsoft Dynamics NAV Server

When the client device, Microsoft Dynamics NAV Web Server components, and Microsoft Dynamics NAV Server are on separate computers, the client device interacts with Microsoft Dynamics NAV Server through the computer that is running Microsoft Dynamics NAV Web client. The computer that is running Microsoft Dynamics NAV Web Server components is performing actions on the client device's behalf. This process is known as impersonation. Impersonation cannot be used across multiple computers, so you must set up delegation from the computer that is running Microsoft Dynamics NAV Web Server components to Microsoft Dynamics NAV Server.

To configure delegation, you must perform two tasks. First, you delegate access from the computer that is running Microsoft Dynamics NAV Web client to the computer that is running Microsoft Dynamics NAV Server. Second, you configure the kernel mode authentication for the Microsoft Dynamics NAV Web client.

Delegating Access from the Web Server to Microsoft Dynamics NAV Server

Configuring delegation means explicitly configuring the computer that is running Microsoft Dynamics NAV Web Server components (NAVWEB) to delegate its access to the Microsoft Dynamics NAV Server (NAVSERVER) on behalf of the device (CLIENT) that is trying to connect to Microsoft Dynamics NAV. To make the access more secure, you specify delegation to a specific service on a specific server. In this walkthrough, you specify delegation on the DynamicsNAV80 service on NAVSERVER. This is known as constrained delegation.

Note

You must run the following procedure on a domain controller computer or a computer that is installed with Active Directory Domain Services tools.

To delegate access to Microsoft Dynamics NAV Server

  1. On the domain controller computer for your network, or a computer that is installed with Active Directory Domain Services tools, choose Start, and then choose Run.

  2. In the Open field, type dsa.msc.

    This opens the Active Directory Users and Computers utility.

  3. Expand the node for the domain where you have installed the Microsoft Dynamics NAV environment. For this example, the domain in the walkthrough is Corp.

  4. Select the Computers node, right-click the NAVWEB computer, and then choose Properties.

  5. On the Delegation tab, choose Trust this user for delegation to specified services only, and then choose Use Kerberos only.

  6. You must add the following service entries for the computer that is running Microsoft Dynamics NAV Server, which in this walkthrough is NAVSERVER.

    Service type User or computer Port

    DynamicsNAV

    NAVSERVER

    7046

    DynamicsNAV

    NAVSERVER.corp

    7046

    HOST

    NAVSERVER

    HOST

    NAVSERVER.corp

  7. To add the HOST service, select Expanded, and then choose Add.

  8. In the Add Services window, choose Users or Computers.

  9. In the Enter the object names to select box, type the name of the computer that is running Microsoft Dynamics NAV Server, in this case NAVSERVER, and then choose the OK button.

  10. In the list of available services, select HOST, and then choose the OK button.

  11. To add the DynamicsNAV service, select Expanded, and then choose Add.

  12. In the Enter the object names to select box, type the name of the user that is running the Microsoft Dynamics NAV Server, and then choose the OK button.

  13. Choose the OK button to close the dialog box.

Configuring Kernel Mode Authentication

By default, Windows authentication on the Microsoft Dynamics NAV Web client in IIS is set to use kernel mode authentication. Kernel-mode authentication improves authentication performance. However, when you use delegation with Kerberos, you must either disable kernel mode or configure it to use the credentials of the application pool of Microsoft Dynamics NAV Web client. Otherwise, authentication will fail and Microsoft Dynamics NAV Web client will not be able to connect to Microsoft Dynamics NAV Server. This is because kernel mode authentication runs under the computer account of the computer that is running Microsoft Dynamics NAV Web Server components, while the Microsoft Dynamics NAV Web client runs under the user account of the user trying to access Microsoft Dynamics NAV.

As best practice, you should configure kernel mode authentication to use the application pool credentials, as described in this walkthrough.

To configure kernel mode authentication to use the application pool credentials

  1. On the NAVWEB computer, using a text editor such as Notepad, open the applicationHost.config file for IIS. By default, the file is located in the c:\Windows\System32\inetsrv folder.

  2. Locate the <location path="Microsoft Dynamics NAV 2015 Web Client"> element.

  3. Change the <windowsAuthentication enabled="true"> element to the following.

    <windowsAuthentication enabled="true" useAppPoolCredentials="true" />
    
  4. Save the file.

  5. Restart IIS. To restart IIS in a command prompt, do the following:

    1. On the Start menu, choose Run.

    2. In the Open box, type cmd, and then choose the OK button.

    3. At the command prompt, type iisreset, and then press Enter.

    Tip

    You can also restart IIS using Internet Information Services Manager, if you have it installed.

Allowing Inbound Communication on the Microsoft Dynamics NAV Web Client Port Through the Windows Firewall

By default, the Microsoft Dynamics NAV Web client is configured for communication on port 8080 of the computer. This port is typically blocked by Windows Firewall. To allow communication to the Microsoft Dynamics NAV Web client from client devices, you must create an inbound rule on the port 8080 in the Windows Firewall setup.

Note

You do not have to perform this task if the computer is running Windows Server 2008, Windows Server 2008 R2, or Windows Server 2012 because communication on the port is automatically allowed by Windows Firewall.

To create an inbound rule on port that is used by Microsoft Dynamics NAV Web client

  1. On the NAVWEB computer, on the Start menu, choose Control Panel, choose System and Security, and then choose Windows Firewall.

  2. In the navigation pane, choose Advanced settings.

  3. In the Windows Firewall with Advanced Settings window, in the navigation pane, choose Inbound Rules, and then in the Actions pane, choose New Rule.

  4. On the Rule Type page, choose Port, and then choose Next.

  5. On the Protocol and Ports page, choose Specific local ports, and then type a port number in the box. For example, type 8080 for the default port of the Microsoft Dynamics NAV Web client.

  6. Choose Next.

  7. On the Action page, choose Allow the connection, and then choose Next.

  8. On the Profile page, choose the profiles, and then choose Next.

  9. On the Name page, type a name for the rule, and then choose Finish.

Opening the Microsoft Dynamics NAV Web client

You can open the Microsoft Dynamics NAV Web client on a device with a supported web browser.

To open the Microsoft Dynamics NAV Web client

  1. Open the web browser.

  2. In the address box, type the following URL:

    http://ComputerName:PortNumber/DynamicsNAV80/WebClient/Default.aspx

    • Substitute ComputerName with the name of the computer that is running the Microsoft Dynamics NAV Web Server components.

    • Substitute PortNumber with the port that you configured for the Microsoft Dynamics NAV Web Server components during Setup.

    • Substitute DynamicsNAV80 with the name of the Microsoft Dynamics NAV Server instance that you configured during Setup. DynamicsNAV80 is the default value.

    For this walkthrough, you would use the following URL:

    http://navweb:8080/DynamicsNAV80/WebClient/Default.aspx

Troubleshooting

If you are cannot connect the Microsoft Dynamics NAV Web client or you are experiencing problems, see Troubleshooting the Microsoft Dynamics NAV Web Client Installation.

Next Steps

The following is a list of typical tasks to perform after you install Microsoft Dynamics NAV Web client.

See Also

Concepts

Configuring Microsoft Dynamics NAV Server

Other Resources

Deploying the Microsoft Dynamics NAV Web Client
Deploying the Microsoft Dynamics NAV Web Client on Three Computers
Microsoft Dynamics NAV Web Client Network Architecture
Walkthrough: Installing the Microsoft Dynamics NAV Web Client Tiers on One Computer
Configuring Microsoft SQL Server