以下の内容はhttps://blog.systemjp.net/entry/2018/09/06/154630より取得しました。


.netのHTTPS通信で System.Net.WebException: 接続が切断されました: 送信時に、予期しないエラーが発生しました。 とエラーがでたら TLS1.2にすればOK

WebClientでアクセスしたら例外がでた。
TLS1.0、1.1の廃止が原因らしい。

TLS1.2にするには
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 入れるだけで一応OK。

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
using (var client = new WebClient())
{
    var url = "https://www.sample.com/sample";
    var keys = new System.Collections.Specialized.NameValueCollection();
    var responseData = client.UploadValues(url, keys);
}

vb.netでもC#でも同じ書式

こう案内しているサイトもあった

ServicePointManager.SecurityProtocol = ServicePointManager.SecurityProtocol Or SecurityProtocolType.Tls12



以上の内容はhttps://blog.systemjp.net/entry/2018/09/06/154630より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14