Hi All,
I recently migrated and upgraded from Server 2012 R2 NPM 12.4 to Server 2016 2020.2.4
After the migration my Slack Alerts failed with the following error:
Execute Program Failed with Exit Code 1
I also found the following entry in the logs:
WARNING - The underlying connection was closed: An unexpected error occurred on a receive.
After much research and googling I finally found the solution. In Server 2016 a couple of registry entries are required to force the system to use TLS1.2, this wasn't required on Server 2012, the entries are as follows:
Windows Server Version 1709 / Windows 2016 / Windows 10 (for IIS Manager and Web Deploy)
Set the SchUseStrongCrypto registry key as follows, save below code to forceTLS1.2.reg and run it:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001
On reboot my Slack Alerts started working again.
Hope this helps anyone having similar issues.
Regards all,
Dave