Tuesday, April 14, 2015

Dynamics NAV 2015 - How to create a new Web Client Instance


  • Ensure your Web Components have been installed for NAV
  • Run the Microsoft Dynamics NAV 2015 Administration Shell as Administrator
    • Not the Developer Shell, look for this specific shortcut
  • Run 
  • This will create a new Web Client Instance, however, it will copy the web.config from your primary web client instance 
    • This results in the new Web Client instance still pointing to the old NAV server instance
    • To fix this, modify the web.config on the new web client instance, or modify the C:\Program Files\Microsoft Dynamics NAV\80\Web Client\instanceweb.config file which will be used as the template for the new instance
  • Navigate to C:\inetpub\wwwroot (you may need to give your account full access to this folder in order to change the web.config)
  • Look for the Instance folder
  • Go into it
  • Edit the web.config file (or navsettings.json)
  • Search for any references to the Primary NAV Instance, and the ClientServicesPort
  • Replace port and instance with new port and instance
    • Replace server with "localhost"
  • Go to the C:\inetpub\wwwroot\TEST2015\WebClient
    • Edit the instance web.config and replace all instances of the old instance name and port
  • Restart everything

To Remove a web server instance

  • In IIS
    • Expand Sites>Web Client>Instance
    • Delete the WebClient at the lowest level for the instance first
    • Remove the folder in IIS
    • Delete the instance folder from C:\inetpub\wwwroot

1 comment:

  1. Can we create the Web Client Instance in a similar way using Microsoft Dynamics NAV 2016?

    ReplyDelete