question

Vinisha-4377 avatar image
0 Votes"
Vinisha-4377 asked SamWu-MSFT commented

The remote certificate is invalid according to the validation procedure.

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.

dotnet-csharpwindows-server-iis
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Vinisha-4377 "The remote certificate is invalid according to the validation procedure" error, it is likely that your server certificate is self-signed, or you have used the wrong host name to connect (the host name must match the name on the certificate), for example imap.example.com and example.com may point to the same server, but certificate is issued only to imap.example.com and this is the address you should use), so please check the certificate in your IIS.

0 Votes 0 ·

0 Answers