Skip to content

How To: Correct Two Common Errors in Microsoft Dynamics Business Central or NAV
Correcting two common errors in Dynamics NAV / Business Central programming

Publish Extension Error

If you encounter an error when trying to publish an extension from VSCode in Microsoft Dynamics Business Central or NAV, use the following to correct it.

The error will look like this:

The request for path /DynamicsNAV130/dev/metadata failed with code InternalServerError.
Reason: NetFx40_LegacySecurityPolicy is enabled and must be turned off in the Microsoft.Dynamics.Nav.Server.exe.config file.

  1. Open the notepad as administrator.
  2. Open the Microsoft.Dynamics.NavServer.exe.config file from C:\Program Files\Microsoft Dynamics 365 Business Central\130\Service
    Figure 1 - Open the Microsoft.Dynamics.NavServer.exe file in Microsoft Dynamics Business Central or NAV
    Figure 1 - Open the Microsoft.Dynamics.NavServer.exe.config file in Microsoft Dynamics Business Central or NAV
  3. Change the NetFx40_LegacySecurityPolicy enabled to False
    Figure 2 –Change the NetFx40_LegacySecurityPolicy enabled to False in Microsoft Dynamics Business Central or NAV
    Figure 2 –Change the NetFx40_LegacySecurityPolicy enabled to False in Microsoft Dynamics Business Central or NAV
  4. Save the file, then restart the service.

Publish Extension Error

If you face the error, Could Not Open the Specified Startup Page, in Microsoft Dynamics Business Central or NAV, use the following to correct it.

The error will look like this:

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

  1. Open Business Central or NAV Administration Console.
  2. Configure the “Web Client Base URL“ in Service.
    Figure 3 - Configure the “Web Client Base URL“ in Service in Microsoft Dynamics Business Central or NAV
    Figure 3 - Configure the “Web Client Base URL“ in Service in Microsoft Dynamics Business Central or NAV Administration Console
  3. Save the changes and restart.
  4. Open the VS Code and publish.

If you have any questions about Extensions or other Dynamics NAV or Business Central questions for any version, contact ArcherPoint.

Read more "How To" blogs from ArcherPoint for practical advice on using Microsoft Dynamics Business Central or NAV. If you are interested in NAV/Business Central development, check out our collection of NAV Development Blogs.

      Blog Tags: 
      Read ArcherPoint's Blog Follow us on Twitter Follow us on Facebook Follow us on LinkedIn Link to our RSS feed Watch us on YouTube
      Get Help Now