Enabled the NetFx40_LegacySecurityPolicy
If it’s the first time that you are developing on Dynamics Business Central on premise with Visual Studio Code, maybe you can get the following error when you try to pubblish your extension:
metadata failed with code InternalServerError. Reason: NetFx40_LegacySecurityPolicy is enabled and must be turned off in the Microsoft.Dynamics.Nav.Server.exe.config file
How to solve this issue?
The way to solve it’s very easy:
Go in the folder where is installed Dynamics Business Central, and open the file:
C:\Program Files\Microsoft Dynamics 365 Business Central\130\Service\Microsoft.Dynamics.Nav.Server.exe.config
On the Microsoft.Dynamics.Nav.Server.exe.config file turn on “false” the string <Netfx40_LegacySecurityPolicy enabled= “true”>
After that, restart your server, and try again to pubblish you extension.
Hope you find the post useful. Let me know the feedback.
Stay tuned for more…