Could not establish secure channel for SSL/TLS with authority '*'

前端 未结 9 1660
感情败类
感情败类 2020-12-14 17:59

I must consume a PHP webservice which has a SSL certificate. My .net 3.5 Class library references the webservice with \'Add Service references\' in Visualstudio 2010 (WCF ri

9条回答
  •  误落风尘
    2020-12-14 18:52

    This error can occur for lots of reasons, and the last time, I solved it by modifying the Reference.svcmap file, and changing how the WSDL file is referenced.

    Throwing exception:

    
    
    

    Working fine:

    
    
    

    This seems weird, but I have reproduced it. This was in a console application on .NET 4.5 and 4.7, as well as a .NET WebAPI site on 4.7.

提交回复
热议问题