C# HttpClient An existing connection was forcibly closed by the remote host

后端 未结 5 943
一生所求
一生所求 2020-12-15 02:37

I\'m working on an integration with Alternative Payments using their hosted page integration. Their C# SDK does not have this integration available at the moment, but as you

5条回答
  •  不知归路
    2020-12-15 03:17

    If you are using .Net 4.0 then SecurityProtocolType.Tls11 and SecurityProtocolType.Tls2 are not defined so instead you can use the hard coded value below.

    ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;

提交回复
热议问题