I have an application coded in VB.net that has this method of accessing Webservice, i have this error and after searching fixes i still have no luck.
Error: The requ
Obviously the URL you're calling requires TLS 1.1
or TLS 1.2
.
You can enable TLS 1.1
or TLS 1.2
by setting the security-protocol with ServicePointManager.SecurityProtocol
:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
.NET 4.0
supports up toTLS 1.0
while.NET 4.5
or higher supports up toTLS 1.2
For reference:
- Default SecurityProtocol in .NET 4.5
- Are there .NET implementation of TLS 1.2?