The underlying connection was closed
Symptoms
When attempting to connect to a ServiceNow instance you receive the error.
"Error connecting to the ServiceNow instance. The underlying connection was closed: An unexpected error occurred on a receive."
or
"Error connecting to the ServiceNow instance. The request was aborted: Could not create SSL/TLS secure channel."
Cause
This can occur when using older operating systems such as Windows Server 2012 R2 that are not configured to use newer TLS protocols.
Resolution
Ensure the following registry keys are set on the machine running XIA Configuration Server, and reboot if required.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SystemDefaultTlsVersions"=dword:00000001
"SchUseStrongCrypto"=dword:00000001
- or -
Install XIA Configuration Server on a more modern operating system.
More Information
For more information see the following article.
https://learn.microsoft.com/dotnet/framework/network-programming/tls#systemdefaulttlsversions