- 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
- New-NAVWebServerInstance -WebServerInstance MyInstanceName -Server MyServerName -ServerInstance MyInstanceName
- Example
- New-NAVWebServerInstance -WebServerInstance TESTNAV -Server NAVSERVER -ServerInstance TESTNAV
- Full explanation here
- 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
Can we create the Web Client Instance in a similar way using Microsoft Dynamics NAV 2016?
ReplyDelete