WCF Error "This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case

 Error  :an error occurred while making the http request to url. this could be due to the fact that the server certificate is not configured properly with http.sys in the https case. this could also be caused by a mismatch of the security binding between the client and the server.

ANS

 

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

No comments:

Post a Comment

C# .Net Fundamentals interview questions

  1. Basic .NET Concepts What is the  .NET Framework ? A software framework by Microsoft that provides a runtime (CLR) and libraries for bui...

Best for you