INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

System.Net.ServicePointManager Setting TSL's

System.Net.ServicePointManager Setting TSL's

(OP)
Had a webservice I was consuming throw an error:
-----------------
An error occurred while making the HTTP request to https://www.odfl.com/wsRate_v4/RateService. 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 --> vb.net

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




RE: System.Net.ServicePointManager Setting TSL's

What is the error or message you are getting?

RE: System.Net.ServicePointManager Setting TSL's

That is C# syntax you are trying to use. You need to put ORs between them

RE: System.Net.ServicePointManager Setting TSL's

(OP)
HA HA Gee do I feel dumb.

Thank you JB. Appreciate it.

RE: System.Net.ServicePointManager Setting TSL's

nope, don't feel dumb. Just remember that when you google for answers most of them will be C# samples unless you specifically look for VB examples.
I just usually look for the first few find an answer and convert the code if necessary. Here is a good online converter if you ever need to use it:
http://converter.telerik.com/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close