Correcting Errors in Dynamics NAV - Publish Extension Error and Could Not Open Specified Startup Page

Correcting Errors in Dynamics NAV - Publish Extension Error and Could Not Open Specified Startup Page

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 FilesMicrosoft Dynamics 365 Business Central130ServiceFigure 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.

      Trending Posts

      Stay Informed

      Choose Your Preferences
      First Name
      *required
      Last Name
      *required
      Email
      *required
      Subscription Options
      Your Privacy is Guaranteed