.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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -