Modern Development Environment Issues

Standard

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"/>

Advertisements

Nav 2016 Preview Report without Request Page

Standard

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

  5

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

1

XML string

2

  • Copy Message to text and replace parameter with %1

3

  • Create New Action on posted sales invoice page

4

  • Posted sales invoice page

6

Dynamics Nav 2016 Enable NavUserPassword authentication in simple steps

Standard

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

2

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

Select Certificate

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

5

  • Copy Certificate to Trusted Root Certification Authorities

6

  • 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

Thumbprint

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

8

  • Create New NavUserPassword user in Navsion NavPasswordUser

 

  • Update  Client Configuration file New Service  details and authentication Details

12

  • Nav Client Open with NavUserPassword login Screen

NavUserPasswordLogin

  • Client opened with navuser password

Nav Client