Your project supports .Net Framework 4.0 and .Net Framework 4.5. If you have upgrade issues
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
instead of can use;
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;