.net 基礎連接已經關閉: 發送時發生錯誤.

WebClient 請求的時候出現 “基礎連接已經關閉: 發送時發生錯誤” 問題


ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072 | SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls|SecurityProtocolType.Tls11;

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章