The remote certificate is invalid according to the validation procedure.

Vinisha 1 Reputation point
2021-10-06T02:42:11.037+00:00

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.

Internet Information Services
C#
C#
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.
11,012 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.