InstallationDeveloper Workstation Installation

Developer Workstation Installation

Install the NAS

If you are going to use Sana Commerce with MS Dynamics NAV 2009 three-tier environment you can skip the steps 'Install the NAS', 'Configure the NAS', 'Configure the Sana e-Commerce Roles in NAV' and 'Install WCF service'.
 
This step is optional. While developing with Sana Commerce, it can be useful to use the debugger in NAV. If you want to do that, you need to run the Sana Commerce startup code unit from the NAV client instead of using a NAS.
This Code unit 11123304 'SC - NAS MessageHandler' can be accessed through 'Object Designer' (Open NAV client, select 'Tools > Object Designer'). Click 'Design', enter the port number (more about a port can be found at the end of this chapter), close the window, save the changes by compiling the code unit and then click 'Run'.
  • Run the NAS installer from the NAV installation disk (located in the NAS directory);

     
    Installing NAS 

  • Select 'Typical setup' and finish the installation (leave the check box Start MS Dynamics NAV Application service in the last step unchecked). This will create two windows services; one for native data stores and one for SQL server data stores. By default, the Network service is set as 'Log On As user', meaning that the service will run on this account;
  • Change this 'Log On As user' for the NAS service instance that you will use (either native or SQL server). This is needed since you do not want to give the Network service user the Super role in the NAV administration and can be done by opening the properties of the NAS service in the 'Services' window (Start menu > Control Panel > Administrative Tools > Services);

     
    NAS Service in the 'Services' Window 

  • Go to the 'Log On' tab and select the 'This account' option. Enter the credentials for the user which will be used;

     
    Specifying the User for Running the NAS 

    We recommend creating a new user for running the NAS, which will only be given rights for NAV. This can be either a local or a domain user (a local user is only possible when running NAV on the same machine). Another option in the development environment is to use your own windows account as the Log On user, but this can be dangerous when for example your password expires. 
  • Open the 'Recovery' tab and select 'Restart the service' for the options 'First failure', 'Second failure' and 'Subsequent failures'. This makes sure that the NAS service is restarted when the connection to NAV is lost;

     
    Configuring the Recovering Options 

  • Click the 'Apply' button on the bottom right and click 'OK';
  • Allow your user the access to the NAV database:
    • Open the Navision client and connect to the NAV administration with credentials that have enough rights to allow access to other users (the 'Super' or 'Security' role). Ask your system administrator, if you do not have access yourself;
    • Go to 'Tools > Security > Windows logins' and enter the user account (with domain name!) that has been chosen as NAS user in an empty row;
    • Click the 'Roles' button at the bottom, lookup the 'Super' role and select it;

         
      Specifying the NAV Rights for the User 

    • Close the windows to complete the step.
InstallationDeveloper Workstation Installation