Prepare NAV Server Environment

Open 'Prepare NAV Server Environment' wizard, choose your NAV version and service to see more information.

Set Rights for WCF

 
You need Windows XP Service Pack 2 Support Tools to accomplish this step in Windows XP. Make sure that you have installed the optional tools, which can be downloaded here: http://www.microsoft.com/downloads/details.aspx?amp;displaylang=en&familyid=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en.
 

Step 1: Open the Microsoft Dynamics NAV client, connect to the NAV administration and company.

Step 2: Select the 'Webshop -> Setup' menu item on the left and in the 'Sana Commerce Setup' window click 'NAS Setup':


NAS Setup

Step 3: Switch to the 'Single NAS Setup' tab when using a single NAS setup.

If multiple NAS services will be used, switch to the 'Multiple NAS Setup' tab:

Step 4: Mark the 'Use Secure Connection (https)' check box and enter the port number on which the WCF will be running (for NAV with Pebblestone Fashion module, the default port number is 6001, for NAV Standard it is 6002).

Step 5: Run the following command (note that this command is case sensitive!): 

httpcfg set urlacl /u PROTOCOL://URL:PORTNUMBER/navision/ /a "O:AUG:AUD:(A;;GA;;;AU)"  
'HttpCfg.exe', which is required for this step, is not available in Windows Server 2008. Use 'Netsh.exe' instead (about which you can read here). In this case, the command will be the following: 
netsh.exe http add urlacl url=PROTOCOL://URL:PORTNUMBER/navision/ user=\USER
Replace the 'USER' tag with the name of the user that will run the Sana Commerce service. Other tag descriptions are explained below.

Step 6: Replace the following replace tags:

#PROTOCOL#: Protocol type (HTTP or HTTPS)
#URL#: Change to:
     + : when the port registrations in the HTTP Server routing table are placed in the "Strong Wildcard" bucket;
     [hostname] : when the port registrations are placed in the "Explicit" bucket;
     [IP-address] : when the port registrations are placed in the "IP-bound Weak Wildcard" bucket;
     * : when the port registrations are placed in the "Weak Wildcard" bucket.

For more information about routing incoming requests, please visit the following link:  http://msdn.microsoft.com/en-us/library/aa364687(VS.85).aspx.
 
#PORTNUMBER#: must be replaced by the port number on which the NAS is running.
 
To see the detailed description of the 'Httpcfg' command syntax, please check http://technet.microsoft.com/en-us/library/cc781601(WS.10).aspx. 
 
As a result, the message 'HttpSetServiceConfiguration completed with 0' should be shown:
 
 
Command was Executed Without Errors  
 
If the result is not '0', it means that an error has occurred while processing the command. In this case, please check whether the format of the command has been written correctly.
 
For more information about this, please read http://msdn.microsoft.com/en-us/library/ms733768.aspx