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.
- Open the notepad as administrator.
- 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
- Change the NetFx40_LegacySecurityPolicy enabled to False
Figure 2 –Change the NetFx40_LegacySecurityPolicy enabled to False in Microsoft Dynamics Business Central or NAV - 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.
- Open Business Central or NAV Administration Console.
- 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 Administration Console - Save the changes and restart.
- 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.