The request was aborted: Could not create SSL/TLS secure channel sandbox account

后端 未结 4 1261
迷失自我
迷失自我 2020-12-03 06:24

It was working well before a week but now it shows following error. I have tried the following things but of no use.

ServicePointManager.Expect100Continue =         


        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 07:07

    Indeed changing SecurityProtocolType.Tls fixes the problem, if you´re working in VS with a framework lower than 4.5 you won´t be able to change it, you have to upgrade your VS to a highest version 2012/2013/2015 to change it.

    System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;

提交回复
热议问题