function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ganesh Punde 10Ganesh Punde 10 

TLS Changes not working in VB.net v4.5 for WSDL requests

Hi,
   I am using WSDL to get user information using salesforce session id. I have added below line in VB.net v4.5:- 

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 Or SecurityProtocolType.Tls11 Or SecurityProtocolType.Tls

It's not working for Sandbox environment but it works for a production environment. Could you please help me? 
Best Answer chosen by Ganesh Punde 10
Daniel BallingerDaniel Ballinger
Does the server that is running your code support TLS 1.1 and 1.2?
While the code might now support it the underlying OS should also support the newer TLS versions. Check the OS support section in Salesforce disabling TLS 1.0

All Answers

VineetKumarVineetKumar
It's working on production, because the TLS changes have not been reflected on production
It is suppose to go live on 4th March 2017.
At present the rollout has been only to the sandboxes. So, it's better you make your system prepared for this change before 4th March 2017
https://help.salesforce.com/apex/HTViewSolution?id=000221207
 
Daniel BallingerDaniel Ballinger
Does the server that is running your code support TLS 1.1 and 1.2?
While the code might now support it the underlying OS should also support the newer TLS versions. Check the OS support section in Salesforce disabling TLS 1.0
This was selected as the best answer