Error when using NAV with API

When using the snapADDY API to perform a connection/export to NAV the security protocols may have to be updated. TLS versions 1.0 and 1.1 may be outdated and have to be updated to TLS 1.2. This can be easily done by choosing the security protocol used by DotNet.

You have to use the ServicePointManager.SecurityProtocol property:

ServicePointManager.SecurityProtocol := SecurityProtocolType.Tls12;

This achieves a communication between Tls12 and DotNet from inside NAV.