Modern Development Environment Issues


While confuguring the visual studio codes hit few errors

  • Could not open the specified startup page. Please check that the server configuration key PublicWebBaseUrl has been properly set

we need to update the public URL from powershell or administor  tool and restart the service

Import-Module 'C:\Program Files\Microsoft Dynamics NAV\110\Service\NavAdminTool.ps1'

Set-NAVServerConfiguration -KeyName PublicWebBaseURL -ServerInstance Dynamicsnav110 -KeyValue http://localhost:8080/dynamicsnav110
  • Debug app hit following error 

After publish the app ,its working fine , inorder to debug the application (F5) from visual studio code we need to disable CAS policy,

open  Server config file C:\Program Files\Microsoft Dynamics NAV\110\Service\Microsoft.Dynamics.NAV.Server.exe.config update netfx40_legacysecuritypolicy to false ,  restart the service and try again

<netfx40_legacysecuritypolicy enabled="false"/>

Nav 2016 Preview Report without Request Page


ReportREPORT.EXECUTE Runs a report in preview or processing only mode without running the request page. The function gets the request page parameter values as an input parameter string. This is the new reporting function added on 2015 version

Requirement : preview Sales invoice report without the request page

  •  Create New codeunit to generate the XML request string


  • Run Codeunit and apply the filter on request page  > OK >Copy the message to text


XML string


  • Copy Message to text and replace parameter with %1


  • Create New Action on posted sales invoice page


  • Posted sales invoice page


Dynamics Nav 2016 Enable NavUserPassword authentication in simple steps


This post describes the simple steps to enable the NavUserPassword authentication


Run Script as administrator

Create New Certificate

  • Run mmc.exe to open management console
  • File -> Add/Remove Snap-in


  • Select Certificate -> Add -> Select Computer account finish

Select Certificate

  • New Certificate created on Personal Certificate folder with 10 year validity


  • Copy Certificate to Trusted Root Certification Authorities


  • Create New service with login account windows user

Create New Nav Service

  • Copy certificate thumbprint   from the certificate

Right click certificate open Details tab select Thumbprint Copy certificate Thumbprint


Update the certificate thumbprint and credential type NavUserPassword -> Restart the service


  • Create New NavUserPassword user in Navsion NavPasswordUser


  • Update  Client Configuration file New Service  details and authentication Details


  • Nav Client Open with NavUserPassword login Screen


  • Client opened with navuser password

Nav Client