My Azure Web Application needs to connect to various servers (both with and without SSL). This works perfectly as long as I run the application in my local IIS Express or II
Perhaps SSL3 or Tls1.0 are not supported? I had a similar issue and after switching to this everything worked:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
You can use ssllabs
to test which protocols the server you are trying to connect to uses.
https://www.ssllabs.com/ssltest/