if you do not use certificate then ignore it by calling this:
VB.NET code:
ServicePointManager.ServerCertificateValidationCallback = Function(s As Object, certificate As X509Certificate, chain As X509Chain, sslPolicyErrors As SslPolicyErrors) True
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The remote certificate is invalid according to the validation procedure.
I am getting this error on the IIS server while making a web API call to external web service in C# and ASP.Net. if i run the code on my local Visual Studio, I am not getting that error and it works fine. I am not able to find why this error is being thrown, can somebody shed some light? thanks.
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
if you do not use certificate then ignore it by calling this:
VB.NET code:
ServicePointManager.ServerCertificateValidationCallback = Function(s As Object, certificate As X509Certificate, chain As X509Chain, sslPolicyErrors As SslPolicyErrors) True