Had a webservice I was consuming throw an error:
-----------------
An error occurred while making the HTTP request to This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.
-------------------
The webservice webmaster stated they had upgraded to TSL1.2 over the weekend.
The cure is to set the TSL protocol in my code behind.
System.Net.ServicePointManager.SecurityProtocol = Net.SecurityProtocolType.Tls12
This works. I saw some examples online where it stated I could add a pipe between protocols like this
Problem is it didn't/doesn't like the pipes. "|"
Has anyone had any success adding multiple Protocols.
Thanks
-dan
-----------------
An error occurred while making the HTTP request to This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.
-------------------
The webservice webmaster stated they had upgraded to TSL1.2 over the weekend.
The cure is to set the TSL protocol in my code behind.
System.Net.ServicePointManager.SecurityProtocol = Net.SecurityProtocolType.Tls12
This works. I saw some examples online where it stated I could add a pipe between protocols like this
Code:
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
Problem is it didn't/doesn't like the pipes. "|"
Has anyone had any success adding multiple Protocols.
Thanks
-dan