InstallationPrepare NAV Server Environment

Prepare NAV Server Environment

Configure the NAS

Step 1: Open the newly installed Application Server Manager.

Step 2: Click right on the root node, select 'New' and select 'Application Server':

 
Creating a New Application Server 

Step 3: Enter the hostname of the server and the NAS service name in the popup. Note that when for example the NAS service in the services manager window is called Microsoft Dynamics NAV Application Server DEV-UA-WS003-SQL you should fill in DEV-UA-WS003-SQL.
Click the 'OK' button and when the application server manager was able to connect to the NAS service a new node is added under the root:

 
Filling in the Application Server Parameters 

Step 4: Select the new node and enter the NAS parameters with the following values:

Database Server Name: Server name on which the Microsoft Dynamics NAV administration is installed.
Database: Name of the Microsoft Dynamics NAV administration database.
Company Name: Company name of the Microsoft Dynamics NAV administration to which Sana Commerce needs to connect.
Start-Up Parameter: SC.
Net Type: TCP/IP Sockets.
Object Cache Size (KB): 32000.

Step 5: Click the 'Apply these settings' button when finished.

You should not yet start the NAS service, because you still have to configure the Microsoft Dynamics NAV administration first.
The configuration of the Microsoft Dynamics NAV administration is given in the 'Install Sana Commerce add-on on Microsoft Dynamics NAV server environment' wizard.

Please take into account that a user who runs the Sana Commerce web application and the NAS user who runs the NAS service process should have the same culture and regional settings. 

Running NAS in Debugging Mode 
In order to interact and detect problems with program logic you can start NAS in a debugging mode. To start the debugger from the Microsoft Dynamics NAV Application Server, you need to include the debug parameter at start-up. For example:
 
nas debug,startupparameter="test",servername=PC0123
 
You can also start NAS with a breakpoints parameter. This enables you to specify a particular file for saving and loading breakpoints and is done by adding the 'breakpoints' keyword and a path to the file:
 
nas debug,breakpoints=C:\file.xml,startupparameter="test",servername=PC0123
 
If you stop the debugger, you cannot start it again unless you terminate the Microsoft Dynamics NAV Application Server and then restart with the debug parameter.
 
To be able to start the debugger, you must ensure that there is a developer license file in the Microsoft Dynamics NAV Application Server installation folder.