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

SQL Server — Core Concepts with examples

  Data Definition Language (DDL) : CREATE , ALTER , DROP (tables, views, procedures, triggers). Data Manipulation Language (DML) : SELECT ,...

Best for you