The request was aborted: Could not create SSL/TLS secure channel. vb.net

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üye
Katılım
29 May 2019
Mesajlar
27
Tepki puanı
2
Ödüller
5
Yaş
25
7 HİZMET YILI
i have a problem in my project in vb.net
when i add webclient i get this ...
The request was aborted: Could not create SSL/TLS secure channel.
 
Son düzenleme:
surdo oppedere
Ultra Üye
Katılım
23 Ara 2016
Mesajlar
1,531
Tepki puanı
76
Ödüller
9
Yaş
23
9 HİZMET YILI
Backup the existing SSL certificate and generate a new certificate on the pool master
 
Słyszę, słyszę letni powiew.
Kurucu
Katılım
20 Haz 2015
Mesajlar
7,666
Çözümler
136
Tepki puanı
20,724
Ödüller
25
10 HİZMET YILI
Are u sure that server is supporting SSL/TLS ?
 
Just KinG
Seçkin Üye
Katılım
1 Tem 2022
Mesajlar
569
Tepki puanı
51
Ödüller
4
Sosyal
3 HİZMET YILI
u must be sure if the server supported SSL and TLS or not
 
Onaylı Üye
Katılım
5 Mar 2023
Mesajlar
53
Tepki puanı
1
Yaş
28
3 HİZMET YILI
which windows version you are using? maybe this can help
Bağlantıları görmek için lütfen Giriş Yap
 
Matrix
Onaylı Üye
Katılım
1 Mar 2023
Mesajlar
55
Tepki puanı
5
Ödüller
2
3 HİZMET YILI
windows 11 edited

thanks sir but i need the code for vb.net
VB.Net:
Private Sub Somewhere()
AddHandler ServicePointManager.ServerCertificateValidationCallback, AddressOf AlwaysGoodCertificate
End Sub

Private Shared Function AlwaysGoodCertificate(ByVal sender As Object, ByVal certificate As X509Certificate, ByVal chain As X509Chain, ByVal policyErrors As SslPolicyErrors) As Boolean
Return True
End Function
 
Üye
Katılım
22 May 2020
Mesajlar
10
Tepki puanı
0
Ödüller
3
Yaş
27
6 HİZMET YILI
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

make sure the ServicePointManager settings are made before the HttpWebRequest is created, else it will not work. :peepoBusiness:
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst