.net - Unable to set ServicePointManager.SecurityProtocol to any value -


i have existing .net console application targeting 4.6.1. have added following method update network security tls1.2.

when running getting argumentnullexception - "value cannot null. parameter name: value"

any ideas?

private static void initialise() {     servicepointmanager.securityprotocol = securityprotocoltype.tls12; } 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -